﻿/* ===== VARIABLES & RESET ===== */
:root {
    --bg-primary: #ffffff;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --text-light: #f3f4f6;
    --accent: #4f46e5;
    --accent-light: #e0e7ff;
    --card-bg: #f9fafb;
    --border: #e5e7eb;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition-fast: all 0.2s ease;
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    --radius: 12px;
    --radius-lg: 18px;
}

.dark-theme {
    --bg-primary: #0f172a;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-light: #1e293b;
    --card-bg: #1e293b;
    --border: #334155;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.25);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.technology-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background-color: #f9fafb;
}

.dark-theme .technology-tags-container {
    border-color: #334155;
    background-color: #0f172a;
}

.tech-tag {
    background-color: #e5e7eb;
    color: #374151;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.dark-theme .tech-tag {
    background-color: #334155;
    color: #cbd5e1;
}

.tech-tag.selected {
    background-color: #e0e7ff; /* accent-light */
    color: #4f46e5; /* accent */
    border-color: #4f46e5; /* accent */
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2);
}

.dark-theme .tech-tag.selected {
    background-color: #312e81;
    color: #e0e7ff;
    border-color: #4f46e5;
}

.text-success {
    color: green;
}

.text-danger {
    color: red;
}

h1,
h2,
h3,
h4 {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

p,
li,
a {
    font-weight: 400;
    text-decoration: none;
    color: white;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: min(90%, 1200px);
    margin: 0 auto;
}

/* ===== HEADER / NAVIGATION ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 999;
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.dark-theme .header {
    background: rgba(15, 23, 42, 0.85);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /*padding: 1rem 0;*/
}

    .logo {
        font-size: 1.8rem;
        font-weight: 700;
        color: var(--accent);
        letter-spacing: -0.5px;
    }
.header .logo {
    width: 186px;
}

.header .logo-image {
    width: 100%;
    height: auto;
}
/* Desktop Navigation */
.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-primary);
    font-weight: 500;
    padding: 0.25rem 0;
    position: relative;
    transition: var(--transition-fast);
    font-size: 1rem;
}

    .nav-link i {
        margin-right: 5px;
    }

    .nav-link:hover,
    .nav-link.active {
        color: var(--accent);
    }

    .nav-link::after {
        content: "";
        position: absolute;
        bottom: -6px;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 2px;
        background: var(--accent);
        border-radius: 2px;
        transition: width 0.3s ease;
    }

    .nav-link:hover::after,
    .nav-link.active::after {
        width: 100%;
    }

.nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    background: var(--card-bg);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: var(--transition-fast);
    font-size: 1.1rem;
}

    .theme-toggle:hover {
        background: var(--accent-light);
        color: var(--accent);
        transform: rotate(15deg);
    }

.hamburger {
    display: none;
}

.mobile-nav-header,
.mobile-nav-footer,
.mobile-theme-toggle {
    display: none;
}

.mobile-overlay {
    display: none;
}

/* ================================================================ */
/* ===== YEKUN MOBİL NAVİQASİYA STİLLƏRİ (768px və aşağı) ===== */
/* ================================================================ */
@media (max-width: 768px) {
    .main-nav .nav-list {
        display: none;
    }

    .desktop-theme-toggle {
        display: none;
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 32px;
        height: 32px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
    }

        .hamburger .hamburger-line {
            width: 100%;
            height: 3px;
            background: var(--text-primary);
            border-radius: 3px;
            transition: transform 0.3s ease, opacity 0.3s ease;
        }

        .hamburger[aria-expanded="true"] .hamburger-line:nth-child(1) {
            transform: translateY(10px) rotate(45deg);
        }

        .hamburger[aria-expanded="true"] .hamburger-line:nth-child(2) {
            opacity: 0;
        }

        .hamburger[aria-expanded="true"] .hamburger-line:nth-child(3) {
            transform: translateY(-12px) rotate(-45deg);
        }

    .mobile-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s ease, visibility 0.4s ease;
    }

        .mobile-overlay.active {
            opacity: 1;
            visibility: visible;
        }

    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: min(85%, 350px);
        height: 100vh;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
        background: var(--bg-primary);
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
        z-index: 1000;
        display: flex;
        flex-direction: column;
        padding: 1.5rem;
        display: none;
    }

        .main-nav.active {
            transform: translateX(0);
            display: block;
        }

            .main-nav.active .nav-list,
            .main-nav.active .mobile-nav-header,
            .main-nav.active .mobile-nav-footer {
                display: flex;
            }

    .mobile-nav-header {
        display: none;
        flex-direction: column;
        padding-bottom: 1.5rem;
        border-bottom: 1px solid var(--border);
    }

    .mobile-menu-title {
        font-size: 1.5rem;
        font-weight: 700;
        font-family: 'Space Grotesk', sans-serif;
    }

    .nav-list {
        display: none;
        flex-direction: column;
        list-style: none;
        gap: 0;
        width: 100%;
        align-items: flex-start;
        padding-top: 1rem;
    }

        .nav-list li {
            width: 100%;
        }

    .nav-link {
        display: block;
        width: 100%;
        padding: 1rem 0.5rem;
        font-size: 1.1rem;
        font-weight: 500;
        border-radius: 8px;
    }

        .nav-link:hover,
        .nav-link.active {
            background: var(--accent-light);
            color: var(--accent);
        }

        .nav-link::after {
            display: none;
        }

    .mobile-nav-footer {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        margin-top: auto;
        padding-top: 1.5rem;
        width: 100%;
        border-top: 1px solid var(--border);
    }

    .mobile-theme-toggle {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        background: transparent;
        border: none;
        font-size: 1rem;
        color: var(--text-secondary);
    }

    .contact-info-mobile {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

        .contact-info-mobile a {
            color: var(--text-secondary);
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }

            .contact-info-mobile a:hover {
                color: var(--accent);
            }

    .social-links-mobile {
        display: flex;
        gap: 1.5rem;
    }

        .social-links-mobile a {
            font-size: 1.25rem;
            color: var(--text-secondary);
            transition: var(--transition-fast);
        }

            .social-links-mobile a:hover {
                color: var(--accent);
                transform: translateY(-3px);
            }
}

/* ===== SECTIONS, HERO, BUTTONS etc. ===== */
.section {
    padding: 6rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
}

    .section-title::after {
        content: '';
        position: absolute;
        bottom: -12px;
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
        height: 4px;
        background: var(--accent);
        border-radius: 2px;
    }

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.appear {
    opacity: 1;
    transform: translateY(0);
}

.hero {
    min-height: 88.6vh;
    display: flex;
    align-items: center;
    background-position: top;
    background-size: cover;
    background-image: url('../images/header.webp');
    color: white;
    text-align: center;
    padding: 0 1rem;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(0 0 0 / 60%);
    z-index: 0;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-content p {
    font-size: 1.15rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    font-weight: 800;
}

.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 11px 1rem;
    border-radius: 9999px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: white;
    color: var(--accent);
    box-shadow: var(--shadow-sm);
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow);
    }

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    backdrop-filter: blur(4px);
}

    .btn-secondary:hover {
        background: rgba(255, 255, 255, 0.3);
    }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--card-bg);
    padding: 2.5rem 2rem;
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border);
}

    .service-card:hover {
        transform: translateY(-8px);
        box-shadow: var(--shadow-lg);
    }

.icon-wrapper {
    width: 72px;
    height: 72px;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin: 0 auto 1.5rem;
    font-size: 1.75rem;
}

.filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--card-bg);
    border: 2px solid var(--border);
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    color: var(--text-primary);
}

    .filter-btn.active,
    .filter-btn:hover {
        background: var(--accent);
        color: white;
        border-color: var(--accent);
    }

/* =============================== */
/* ✅ FIX #2: Projects grid responsive */
/* =============================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    justify-content: center;
    align-items: stretch;
}

.project-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition-slow);
    width: 100%;
}

    .project-card:hover {
        transform: translateY(-8px);
        box-shadow: var(--shadow-lg);
    }

    .project-card img {
        width: 100%;
        height: 240px;
        object-fit: cover;
        transition: var(--transition);
    }

    .project-card:hover img {
        transform: scale(1.05);
    }

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.85);
    color: #f8fafc;
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.project-card:hover .project-overlay {
    transform: translateY(0);
}

.project-overlay h3 {
    margin: 0 0 0.5rem;
}

.project-overlay p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

.blogs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, 320px);
    gap: 2rem;
    justify-content: center;
}

.sidebar-widget .recent-posts-detailed {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

    .sidebar-widget .recent-posts-detailed li {
        display: flex;
        align-items: flex-start;
        gap: 1rem;
    }

.sidebar-widget .post-thumbnail {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
}

    .sidebar-widget .post-thumbnail img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: var(--transition-fast);
    }

    .sidebar-widget .post-thumbnail:hover img {
        transform: scale(1.1);
    }

.sidebar-widget .post-content {
    display: flex;
    flex-direction: column;
}

.sidebar-widget .post-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    text-decoration: none;
    transition: var(--transition-fast);
    margin-bottom: 0.25rem;
}

    .sidebar-widget .post-title:hover {
        color: var(--accent);
    }

.sidebar-widget .post-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.blog-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
}

    .blog-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-lg);
    }

    .blog-card img {
        height: 200px;
        object-fit: cover;
    }

.blog-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0 0 0.75rem;
}

.tag-item {
    background-color: var(--accent-light);
    color: var(--accent);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-block;
    margin: 5px 0;
}

.dark-theme .tag-item {
    background-color: #312e81;
    color: #e0e7ff;
}

.read-more {
    color: var(--accent);
    font-weight: 600;
    margin-top: auto;
    padding-top: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

    .read-more:hover {
        text-decoration: underline;
    }

.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.job-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
}

    .job-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-lg);
    }

    .job-card h3 {
        margin: 0 0 0.75rem;
    }

.job-meta {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0 0 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.job-card ul {
    margin: 1.5rem 0;
    padding-left: 1.25rem;
    color: var(--text-secondary);
}

.job-card li {
    margin-bottom: 0.5rem;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.team-member img {
    width: 75%;
    height: 250px;
    object-position: top;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    border: 3px solid var(--accent-light);
}

.team-member h4 {
    margin: 0 0 0.25rem;
    font-size: 1.1rem;
}

.team-member p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    position: relative;
    border: 1px solid var(--border);
}

.quote-icon {
    color: var(--accent);
    font-size: 2rem;
    opacity: 0.2;
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
}

.testimonial-card p {
    font-style: italic;
    margin: 0 0 1.5rem;
    position: relative;
    z-index: 1;
    font-size: 1.05rem;
    line-height: 1.7;
}

.testimonial-card cite {
    font-weight: 600;
    color: var(--text-secondary);
    font-style: normal;
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.faq-question {
    background: var(--card-bg);
    padding: 1.25rem 1.5rem;
    width: 100%;
    text-align: left;
    border: none;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-primary);
    transition: var(--transition);
}

    .faq-question:hover,
    .faq-item.active .faq-question {
        background: var(--accent);
        color: white;
    }

    .faq-question i {
        transition: transform 0.3s ease;
    }

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: var(--bg-primary);
    color: var(--text-secondary);
    height: 0;
}

.faq-item.active .faq-answer {
    height: auto;
    padding: 1.5rem;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

    .contact-form input,
    .contact-form textarea {
        padding: 1rem;
        border: 1px solid var(--border);
        border-radius: var(--radius);
        background: var(--card-bg);
        color: var(--text-primary);
        font-family: inherit;
        font-size: 1rem;
        transition: var(--transition);
    }

    /* =============================== */
    /* ✅ FIX #1: textarea only vertical resize */
    /* =============================== */
    .contact-form textarea {
        resize: vertical;
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
    }

        .contact-form input:focus,
        .contact-form textarea:focus {
            outline: none;
            border-color: var(--accent);
            box-shadow: 0 0 0 3px var(--accent-light);
        }

.contact-info h3 {
    margin: 0 0 1.5rem;
    font-size: 1.5rem;
}

.contact-info p {
    margin: 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.social-links {
    display: flex;
    gap: 1.25rem;
    margin-top: 2rem;
}

    .social-links a {
        color: var(--text-primary);
        font-size: 1.5rem;
        transition: var(--transition);
    }

        .social-links a:hover {
            color: var(--accent);
            transform: translateY(-3px);
        }

.footer {
    background: var(--card-bg);
    padding: 3rem 0;
    text-align: center;
    margin-top: 4rem;
    border-top: 1px solid var(--border);
}

    .footer p {
        margin: 0 0 1rem;
        color: var(--text-secondary);
    }

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

    .footer-links a {
        color: var(--text-secondary);
        font-weight: 500;
        transition: var(--transition);
    }

        .footer-links a:hover {
            color: var(--accent);
        }

@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .projects-grid {
        justify-content: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .section {
        padding: 4rem 0;
    }

    .section-title {
        font-size: 2.25rem;
    }

    .about-content,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .btn-primary,
    .btn-secondary {
        padding: 0.75rem 1.75rem;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 80vh;
        padding: 2rem 1rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .filters {
        align-items: center;
    }
}

.dark-theme .project-overlay {
    background: rgba(0, 0, 0, 0.95);
}

.dark-theme .quote-icon {
    opacity: 0.1;
}

/* ================================================================ */
/* ===== PROJECT DETAILS PAGE STYLES ===== */
/* ================================================================ */

.project-hero {
    padding: 4rem 0;
    text-align: center;
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--border);
}

    .project-hero h1 {
        font-size: 3rem;
        margin-bottom: 0.5rem;
        color: var(--accent);
    }

    .project-hero .project-subtitle {
        font-size: 1.15rem;
        color: var(--text-secondary);
        max-width: 700px;
        margin: 0 auto;
    }

.back-link {
    display: inline-block;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition-fast);
}

    .back-link:hover {
        color: var(--accent);
        transform: translateX(-5px);
    }

    .back-link i {
        margin-right: 0.5rem;
    }

.project-main-image {
    max-width: 800px;
    width: 90%;
    display: block;
    margin: -3rem auto 0 auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 5px solid var(--bg-primary);
}

/* Mobil görünüşdə düzəliş (səndə margin yazılışı səhv idi) */
@media (max-width: 768px) {
    .team-member img {
        width: 100%;
        height: 441px;
    }

    .logo {
        margin-left: 15px;

        .project-main-image {
            max-width: 95%;
            width: 95%;
            margin: -2rem auto 0 auto; /* ✅ düzəldildi */
        }
    }

    .nav-controls {
        margin-right: 30px !important;
    }

    .project-details-section {
        padding-top: 4rem;
    }

    .project-details-grid {
        display: grid;
        grid-template-columns: 2fr 1fr;
        gap: 3rem;
        align-items: flex-start;
    }

    .project-description h2 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .project-description h3 {
        font-size: 1.5rem;
        margin-top: 2rem;
        margin-bottom: 1rem;
    }

    .project-description ul {
        list-style: none;
        padding: 0;
    }

        .project-description ul li {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            margin-bottom: 0.75rem;
            color: var(--text-secondary);
        }

            .project-description ul li i {
                color: var(--accent);
            }

    .project-meta-card {
        background: var(--card-bg);
        border-radius: var(--radius);
        padding: 2rem;
        border: 1px solid var(--border);
        position: sticky;
        top: 120px;
    }

        .project-meta-card h3 {
            font-size: 1.5rem;
            margin-bottom: 1.5rem;
            border-bottom: 1px solid var(--border);
            padding-bottom: 1rem;
        }

    .project-meta-list {
        list-style: none;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }

        .project-meta-list li {
            display: flex;
            align-items: flex-start;
            gap: 1rem;
        }

        .project-meta-list i {
            font-size: 1.25rem;
            color: var(--accent);
            margin-top: 5px;
        }

        .project-meta-list span {
            display: block;
            color: var(--text-secondary);
            font-size: 0.9rem;
            margin-bottom: 0.25rem;
        }

        .project-meta-list strong {
            color: var(--text-primary);
            font-weight: 600;
        }

    .tech-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-top: 0.5rem;
    }

        .tech-tags span {
            background: var(--accent-light);
            color: var(--accent);
            padding: 0.25rem 0.75rem;
            border-radius: 9999px;
            font-size: 0.8rem;
            font-weight: 500;
        }

    .project-gallery-section {
        background-color: var(--card-bg);
    }

    .project-gallery-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }

        .project-gallery-grid img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            transition: var(--transition);
        }

            .project-gallery-grid img:hover {
                transform: scale(1.03);
                box-shadow: var(--shadow-lg);
            }

    /* ===== PROJECT DETAILS RESPONSIVE ===== */
    @media (max-width: 992px) {
        .project-details-grid {
            grid-template-columns: 1fr;
        }
    }

    @media (max-width: 768px) {
        .project-hero h1 {
            font-size: 2.25rem;
        }

        .project-main-image {
            margin-top: -2rem;
        }
    }

    /* ================================================================ */
    /* ===== BLOG DETAILS PAGE STYLES ===== */
    /* ================================================================ */

    .blog-post-hero {
        padding: 4rem 0;
        text-align: center;
    }

        .blog-post-hero .post-category {
            background: var(--accent);
            color: white;
            padding: 0.25rem 1rem;
            border-radius: 9999px;
            font-size: 0.9rem;
            font-weight: 500;
            display: inline-block;
            margin-bottom: 1rem;
        }

        .blog-post-hero h1 {
            font-size: 3.25rem;
            margin-bottom: 1.5rem;
        }

    .post-meta-info {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 1.5rem;
        color: var(--text-secondary);
    }

        .post-meta-info .author-info {
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }

            .post-meta-info .author-info img {
                width: 40px;
                height: 40px;
                border-radius: 50%;
                object-fit: cover;
            }

        .post-meta-info span {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

    .blog-main-image {
        width: 100%;
        max-height: 500px;
        object-fit: cover;
        border-radius: var(--radius-lg);
        margin-bottom: 2rem;
        box-shadow: var(--shadow-lg);
    }

    .blog-content-section {
        padding-top: 2rem;
    }

    .blog-content-grid {
        display: grid;
        grid-template-columns: 3fr 1fr;
        gap: 3rem;
        align-items: flex-start;
    }

    .blog-article {
        max-width: 75ch;
    }

        .blog-article p.lead {
            font-size: 1.2rem;
            color: var(--text-secondary);
            margin-bottom: 2rem;
            line-height: 1.7;
        }

        .blog-article h2 {
            font-size: 2rem;
            margin-top: 2.5rem;
            margin-bottom: 1rem;
        }

        .blog-article p {
            margin-bottom: 1.5rem;
            line-height: 1.8;
        }

        .blog-article blockquote {
            border-left: 4px solid var(--accent);
            padding-left: 1.5rem;
            margin: 2rem 0;
            font-style: italic;
            color: var(--text-secondary);
        }

            .blog-article blockquote p {
                font-size: 1.1rem;
                margin-bottom: 0.5rem;
            }

            .blog-article blockquote cite {
                font-weight: 600;
                color: var(--text-primary);
            }

        .blog-article .inline-image {
            width: 100%;
            border-radius: var(--radius);
            margin: 2rem 0;
        }

    /* Sidebar styles */
    .blog-sidebar {
        position: sticky;
        top: 120px;
    }

    .sidebar-widget {
        background-color: var(--card-bg);
        padding: 1.5rem;
        border-radius: var(--radius);
        margin-bottom: 2rem;
        border: 1px solid var(--border);
    }

        .sidebar-widget h4 {
            font-size: 1.25rem;
            margin-bottom: 1rem;
            padding-bottom: 0.75rem;
            border-bottom: 1px solid var(--border);
        }

        .sidebar-widget ul {
            list-style: none;
            padding: 0;
        }

        .sidebar-widget .recent-posts li a {
            color: var(--text-primary);
            font-weight: 500;
            display: block;
            padding: 0.5rem 0;
            border-bottom: 1px solid var(--border);
            transition: var(--transition-fast);
        }

        .sidebar-widget .recent-posts li:last-child a {
            border-bottom: none;
        }

        .sidebar-widget .recent-posts li a:hover {
            color: var(--accent);
        }

        .sidebar-widget .category-list li a {
            display: flex;
            justify-content: space-between;
            padding: 0.5rem 0;
            color: var(--text-secondary);
            transition: var(--transition-fast);
        }

            .sidebar-widget .category-list li a:hover {
                color: var(--accent);
            }

        .sidebar-widget .category-list span {
            background-color: var(--accent-light);
            color: var(--accent);
            font-size: 0.8rem;
            padding: 0.1rem 0.5rem;
            border-radius: 6px;
        }

    /* ===== BLOG DETAILS RESPONSIVE ===== */
    @media (max-width: 992px) {
        .blog-content-grid {
            grid-template-columns: 1fr;
        }

        .blog-article {
            max-width: 100%;
        }
    }

    @media (max-width: 768px) {
        .blog-post-hero h1 {
            font-size: 2.5rem;
        }
    }

    /* ============================================ */
    /* Admin Mode - Kompakt Navbar */
    /* ============================================ */

    .main-nav.admin-mode .nav-list {
        gap: 1.2rem;
    }

    .main-nav.admin-mode .nav-link {
        font-size: 0.9rem;
        padding: 0.2rem 0;
    }

        .main-nav.admin-mode .nav-link i {
            margin-right: 4px;
            font-size: 0.85rem;
        }

    @media (max-width: 1400px) {
        .main-nav.admin-mode .nav-list {
            gap: 1rem;
        }

        .main-nav.admin-mode .nav-link {
            font-size: 0.85rem;
        }
    }

    @media (max-width: 1200px) {
        .main-nav.admin-mode .nav-list {
            gap: 0.8rem;
        }

        .main-nav.admin-mode .nav-link {
            font-size: 0.8rem;
        }

            .main-nav.admin-mode .nav-link i {
                margin-right: 3px;
                font-size: 0.75rem;
            }
    }

    .contact-info p{
        color:white !important;
    }