/*
Theme Name: NexusCorp
Author: You
Version: 1.0.0
Text Domain: nexuscorp
*/
:root {
    --primary: #0d47a1;
    --primary-dark: #3a0ca3;
    --secondary: #0f172a;
    --light: #f8f9fa;
    --dark: #212529;
    --gray: #6c757d;
    --accent: #f97316;
    --light-gray: #e9ecef;
    --blue-100: #dbeafe;
    --primary-color: #0d47a1;
    --secondary-color: #1565c0;
    --accent-color: #ff6d00;
    --light-color: #e3f2fd;
    --dark-color: #002171;
    --border-radius: 12px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

html,
body {
    height: 100%
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f9fafb;
    /* bg-gray-50 */
    color: #111827;
}

/* TOP BAR */
.topbar {
    background: linear-gradient(90deg, rgba(15, 23, 42, 1) 0%, rgba(15, 23, 42, .92) 100%);
    color: #cbd5e1;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.link-topbar {
    color: #cbd5e1;
    text-decoration: none
}

.link-topbar:hover {
    color: #ffffff
}

.social-topbar {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 6px
}

.social-topbar:hover {
    color: #fff;
    border-color: #fff
}

/* NAVBAR + menu underline */
.classy-navbar {
    transition: box-shadow .2s ease, background .2s ease
}

.classy-navbar.scrolled {
    box-shadow: 0 10px 30px -15px rgba(0, 0, 0, .25)
}

.fancy-menu .nav-link {
    position: relative;
    font-weight: 600;
    color: var(--secondary);
    padding: .75rem 1rem;
    border-radius: 10px
}

.fancy-menu .nav-link:hover {
    color: var(--primary)
}

.fancy-menu .nav-link.active {
    color: var(--primary)
}

.fancy-menu .nav-link::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 8px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), #1e40af);
    border-radius: 3px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease
}

.fancy-menu .nav-link:hover::after,
.fancy-menu .nav-link.active::after {
    transform: scaleX(1)
}

/* Header buttons */
.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: grid;
    place-items: center
}

/* کوچک کردن لوگو در هدر */
.custom-logo {
    max-height: 40px;
    /* ارتفاع دلخواه */
    width: auto;
    /* عرض متناسب */
}

/* Search hero (desktop & mobile shared) */
.search-hero .form-control {
    border-radius: 0;
    border-left: 0;
}

.search-hero .input-group-text {
    border-radius: 0;
    border-right: 0;
}

.header-search .dropdown-toggle {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.header-search .btn-primary {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

.header-search .form-control {
    height: 44px
}

.header-search .btn,
.header-search .input-group-text {
    height: 44px
}

/* Offcanvas tweaks */
.offcanvas .nav-link {
    font-weight: 600
}

/* Improve dropdown */
.dropdown-menu {
    border-radius: 14px;
    padding: .5rem;
    border: 1px solid rgba(0, 0, 0, .06)
}

.dropdown-item {
    border-radius: 8px
}

.dropdown-item:hover {
    background: #f3f4f6
}

/* Accessibility focus */
a:focus-visible,
button:focus-visible,
.form-control:focus {
    outline: 3px solid rgba(37, 99, 235, .35) !important;
    outline-offset: 2px
}

/* Header */
.navbar {
    box-shadow: 0 1px 10px rgba(0, 0, 0, .06);
}

.brand-badge {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--primary);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 1.25rem;
    margin-right: .5rem;
}

.brand-text {
    color: var(--secondary);
    font-weight: 700
}

.brand-text .highlight {
    color: var(--primary)
}

/* Buttons */
.btn-primary {
    background: var(--primary);
    border-color: var(--primary)
}

.btn-primary:hover {
    background: #1e40af;
    border-color: #1e40af
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary)
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: #fff
}

/* Hero gradient */
.hero-gradient {
    background: linear-gradient(120deg, #2563eb 0%, #1e40af 100%);
    color: #fff;
    padding-top: 7.5rem;
    /* compensate fixed-top */
    padding-bottom: 5rem;
}

/* Card + hovers like Tailwind */
.soft-card {
    background: #f8fafc;
    /* gray-50 */
    border: none;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .06), 0 1px 2px rgba(0, 0, 0, .04);
    transition: transform .25s ease, box-shadow .25s ease
}

.soft-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, .1), 0 10px 10px -5px rgba(0, 0, 0, .04)
}

.icon-chip {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--blue-100);
    color: var(--primary);
    display: grid;
    place-items: center;
    margin-bottom: 1rem
}

/* Section titles */
.section-title {
    color: var(--secondary);
    font-weight: 800
}

.text-secondary-ink {
    color: var(--secondary)
}

/* Rounded images */
.rounded-2xl {
    border-radius: 16px !important
}

/* Carousel wrapper to mimic rounded box + overlay arrows/dots */
.hero-carousel-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .25)
}

.carousel-indicators [data-bs-target] {
    width: .75rem;
    height: .75rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, .5)
}

.carousel-indicators .active {
    background-color: #fff
}

.carousel-control-prev,
.carousel-control-next {
    width: auto;
    opacity: 1
}

.carousel-control-prev .ctrl,
.carousel-control-next .ctrl {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .6);
    color: var(--primary);
    display: grid;
    place-items: center
}

/* Stats strip */
.stats-strip {
    background: var(--primary);
    color: #fff
}

.stats-strip .hint {
    color: #dbeafe
}

/* Footer */
footer {
    background: var(--secondary);
    color: #fff
}

footer a {
    color: #9ca3af;
    text-decoration: none
}

footer a:hover {
    color: #fff
}

/* Utility */
.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .25)
}

.text-blue-100 {
    color: #dbeafe
}

.bg-white-50 {
    background: rgba(255, 255, 255, .5)
}

/* Project filter buttons */
.pf-btn {
    background: #e5e7eb;
    color: var(--secondary);
    border: none;
    border-radius: .75rem;
    padding: .5rem 1rem;
    font-weight: 600
}

.pf-btn.active {
    background: var(--primary);
    color: #fff
}

/* Blog cards */
.blog-card {
    background: #fff;
    border: none;
    border-radius: 16px;
    overflow: hidden
}

.blog-card:hover {
    transform: translateY(-5px);
    transition: .25s
}

/* Responsive tweaks */
@media (max-width: 991.98px) {
    .nav-link {
        padding: .5rem 0
    }
}

/* کراوسل کارت چندآیتمی: اندازه‌ها را در هر breakpoint تنظیم می‌کند */
#projectsCarousel .carousel-item {
    transition: transform .6s ease;
}

#projectsCarousel .card img {
    object-position: center;
}

/* نقاط اندیکاتور مثل هیرو */
#projectsCarousel .carousel-indicators [data-bs-target] {
    width: .75rem;
    height: .75rem;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, .2)
}

#projectsCarousel .carousel-indicators .active {
    background-color: rgba(0, 0, 0, .5)
}


.nexus-services .soft-card {
    background: #fff;
    border-radius: 16px;
}

.nexus-services .icon-chip {
    background: rgba(0, 0, 0, .04);
    border-radius: 999px;
    padding: .6rem .8rem;
}


/* پایه کارت ویجت */
.widget-card {
    border: 1px solid rgba(0, 0, 0, .06);
}

.widget-title {
    position: relative;
}

.widget-title::after {
    content: "";
    display: block;
    height: 3px;
    width: 56px;
    margin: .5rem 0 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--bs-primary), rgba(var(--bs-primary-rgb), .35));
}

/* بدنه ویجت: فاصله‌گذاری لینک‌ها و لیست‌ها */
.widget .widget-body ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.widget .widget-body ul li {
    padding: .35rem 0;
    border-bottom: 1px dashed rgba(0, 0, 0, .06);
}

.widget .widget-body ul li:last-child {
    border-bottom: 0;
}

.widget .widget-body a {
    text-decoration: none;
}

.widget .widget-body a:hover {
    color: var(--bs-primary);
}

/* آیکن بولت برای آیتم‌ها */
.widget_categories .widget-body li a,
.widget_archive .widget-body li a,
.widget_pages .widget-body li a,
.widget_meta .widget-body li a,
.widget_recent_entries .widget-body li a {
    position: relative;
    padding-inline-start: 1.25rem;
}

.widget_categories .widget-body li a::before,
.widget_archive .widget-body li a::before,
.widget_pages .widget-body li a::before,
.widget_meta .widget-body li a::before,
.widget_recent_entries .widget-body li a::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: .6em;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--bs-primary);
    box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), .15);
}

/* شمارنده‌ها که با فیلتر PHP تبدیل‌شان کردیم */
.widget .widget-body .count {
    font-size: .75rem;
}

/* جستجو داخل ویجت (اگر به صورت widget_search فراخوان شد) */
.widget_search .input-group .form-control:focus {
    box-shadow: none;
}

/* Cloud Tags */
.widget_tag_cloud .tagcloud a {
    display: inline-block;
    margin: 4px 6px 0 0;
    padding: .35rem .6rem;
    border-radius: 999px;
    background: var(--bs-body-bg);
    color: var(--bs-body-color);
    font-size: .85rem !important;
    /* ثابت‌سازی سایز */
    text-decoration: none;
    transition: .2s;
}

.widget_tag_cloud .tagcloud a:hover {
    background: var(--bs-primary);
    color: #fff !important;
}

/* RSS */
.widget_rss .widget-title .rsswidget img {
    display: none;
}

/* حذف آیکن پیش‌فرض */
.widget_rss .widget-body ul li {
    padding: .5rem 0;
}

.widget_rss .rss-date {
    display: block;
    font-size: .78rem;
    color: var(--bs-secondary-color);
}

/* تقویم */
.widget_calendar .calendar_wrap {
    padding: .25rem;
    border-radius: .75rem;
    background: var(--bs-body-bg);
}

#wp-calendar {
    width: 100%;
    text-align: center;
    border-collapse: collapse;
}

#wp-calendar th,
#wp-calendar td {
    padding: .5rem;
    border: 1px dashed rgba(0, 0, 0, .06);
}

#wp-calendar caption {
    caption-side: top;
    padding: .5rem;
    font-weight: 600;
}

/* «آخرین نوشته‌ها» کمی تمیزتر */
.widget_recent_entries .post-date {
    display: block;
    font-size: .78rem;
    color: var(--bs-secondary-color);
}

/* حالت تیره‌ی ملایم (اختیاری؛ اگر Dark دارید) */
[data-bs-theme="dark"] .widget-card {
    border-color: rgba(255, 255, 255, .08);
    background: var(--bs-body-bg);
}

[data-bs-theme="dark"] .widget-title::after {
    background: linear-gradient(90deg, #6ea8fe, rgba(110, 168, 254, .35));
}










/* hero */


.hero-section {
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--primary-color) 100%);
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23002171" fill-opacity="0.3" d="M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,197.3C1248,203,1344,149,1392,122.7L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: center;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    opacity: 0.9;
}

.btn-hero-primary {
    background-color: var(--accent-color);
    border: none;
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 109, 0, 0.4);
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 109, 0, 0.6);
    background-color: #ff8500;
}

.btn-hero-secondary {
    background-color: transparent;
    border: 2px solid white;
    color: white;
    padding: 10px 28px;
    font-size: 1.1rem;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-hero-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--accent-color);
}

.cert-badge {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-right: 10px;
    margin-bottom: 10px;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.3rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-section {
        padding: 80px 0;
        text-align: center;
    }
}