/* --------------------------------------------------
   Global Theme Inspired by Credesign Template
   -------------------------------------------------- */
:root {
    --bg-color: #0f172a;
    --bg-secondary: #111c32;
    --panel-color: rgba(15, 23, 42, 0.85);
    --accent-color: #f97316;
    --accent-gradient: linear-gradient(135deg, #f97316 0%, #fb923c 50%, #facc15 100%);
    --primary-text: #f8fafc;
    --secondary-text: #94a3b8;
    --muted-text: #64748b;
    --border-color: rgba(148, 163, 184, 0.1);
    --card-shadow: 0 20px 40px rgba(8, 15, 35, 0.45);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --font-body: 'Jost', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg-color);
    color: var(--primary-text);
    padding-top: 80px;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

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

section {
    padding: 90px 0;
    position: relative;
}

.section-subtitle {
    color: var(--accent-color);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
    text-align: left;
}

.section-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--primary-text);
    text-align: left;
}

.section-description {
    color: var(--secondary-text);
    max-width: 650px;
    margin-bottom: 40px;
    text-align: left;
}

/* --------------------------------------------------
   Navbar
   -------------------------------------------------- */
.navbar {
    background: rgba(15, 23, 42, 0.9) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 18px 0 !important;
    transition: var(--transition);
    min-height: 80px;
    max-height: 80px;
    overflow: visible;
}

/* Desktop Menu Centering - Only for desktop (lg and above) */
@media (min-width: 992px) {
    .navbar .container {
        position: relative;
    }
    
    .navbar .desktop-menu-center {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        width: auto;
    }
    
    .navbar .desktop-icons-right {
        margin-left: auto;
    }
}

.navbar-brand {
    font-weight: 700;
    font-size: 24px;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-text) !important;
}

.navbar-brand span {
    color: var(--accent-color);
}

.navbar-nav .nav-link {
    color: var(--secondary-text) !important;
    font-weight: 500;
    margin: 0 12px;
    position: relative;
    padding: 8px 0 !important;
    transition: var(--transition);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 3px;
    background: var(--accent-gradient);
    border-radius: 999px;
    transition: var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-text) !important;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 100%;
}

.btn-nav {
    background: var(--accent-gradient);
    border: none;
    color: #0f172a !important;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 999px;
    box-shadow: var(--card-shadow);
}

/* --------------------------------------------------
   Hero
   -------------------------------------------------- */
.hero {
    padding: 140px 0 110px;
    background: radial-gradient(circle at top left, rgba(249, 115, 22, 0.25), transparent 45%),
        radial-gradient(circle at bottom right, rgba(14, 165, 233, 0.15), transparent 50%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.85));
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    top: 120px;
    right: -150px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.45), transparent 70%);
    filter: blur(60px);
}

.hero .badge-pill {
    background: rgba(249, 115, 22, 0.12);
    color: var(--accent-color);
    padding: 12px 24px;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.hero h1 {
    font-size: 70px;
    font-weight: 700;
    line-height: 1.1;
    margin: 25px 0;
}

.hero h1 span {
    color: var(--accent-color);
}

.hero p {
    color: var(--secondary-text);
    font-size: 18px;
    line-height: 1.7;
    max-width: 550px;
}

.hero-actions {
    margin-top: 35px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-primary-gradient {
    background: var(--accent-gradient);
    color: #0f172a;
    border: none;
    padding: 14px 36px;
    font-weight: 600;
    border-radius: 14px;
    box-shadow: var(--card-shadow);
    letter-spacing: 0.5px;
}

.btn-outline-light {
    border: 1px solid rgba(148, 163, 184, 0.3);
    color: var(--primary-text);
    background: transparent;
    border-radius: 14px;
    font-weight: 600;
}

.hero-stats {
    margin-top: 60px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
    width: 100%;
}

.hero-stats .stat {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(148, 163, 184, 0.08);
    padding: 24px 20px;
    border-radius: 18px;
    text-align: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 15px 35px rgba(8, 15, 35, 0.35);
}

.hero-stats .stat h3 {
    font-size: 36px;
    font-weight: 700;
    color: var(--accent-color);
}

.hero-stats .stat span {
    color: var(--secondary-text);
    font-size: 15px;
}

.hero-visual {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-visual .blob {
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.3), transparent 70%);
    border-radius: 50%;
    position: absolute;
    filter: blur(20px);
    animation: float 6s ease-in-out infinite;
}

.hero-visual .frame {
    position: relative;
    width: 340px;
    height: 340px;
    border-radius: 26px;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(148, 163, 184, 0.1);
    box-shadow: 0 35px 45px rgba(8, 15, 35, 0.55);
    backdrop-filter: blur(20px);
    overflow: hidden;
}

.hero-visual .frame::after {
    content: '';
    position: absolute;
    inset: -40%;
    background: conic-gradient(from 90deg, rgba(249, 115, 22, 0.35), transparent 60%);
    animation: rotate 14s linear infinite;
}

.hero-visual .frame .inner {
    position: absolute;
    inset: 12px;
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 30px;
    z-index: 2;
}

.hero-visual .frame .inner {
    color: #fff;
}

.hero-visual .frame .inner i {
    font-size: 50px;
    color: var(--accent-color);
    margin-bottom: 18px;
}

.hero-visual .frame .inner h4 {
    color: #fff;
}

.hero-visual .frame .inner p {
    color: #fff !important;
    opacity: 0.9;
}

.hero-visual .frame .inner .badge-soft {
    color: #fff;
    background: rgba(249, 115, 22, 0.25);
    border: 1px solid rgba(249, 115, 22, 0.4);
}

/* --------------------------------------------------
   About
   -------------------------------------------------- */
.about-card {
    background: rgba(15, 23, 42, 0.85);
    border-radius: 24px;
    border: 1px solid rgba(148, 163, 184, 0.08);
    padding: 50px;
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
}

.about-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgba(249, 115, 22, 0.08), transparent 60%);
    pointer-events: none;
}

.about-card p {
    color: var(--secondary-text);
    line-height: 1.8;
    margin-bottom: 25px;
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.highlight-item {
    background: rgba(16, 24, 40, 0.9);
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.08);
    padding: 24px 20px;
    text-align: center;
}

.highlight-item h4 {
    font-size: 36px;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.highlight-item span {
    color: var(--secondary-text);
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* --------------------------------------------------
   Services
   -------------------------------------------------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.service-card {
    background: rgba(16, 24, 40, 0.92);
    border-radius: 22px;
    padding: 35px;
    border: 1px solid rgba(148, 163, 184, 0.08);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(249, 115, 22, 0.4);
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(249, 115, 22, 0.15);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
}

.service-card h4 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-text);
}

.service-card p {
    color: var(--secondary-text);
    line-height: 1.7;
    font-size: 15px;
}

/* --------------------------------------------------
   Portfolio
   -------------------------------------------------- */
.portfolio-card {
    overflow: hidden;
    border-radius: 22px;
    position: relative;
    border: 1px solid rgba(148, 163, 184, 0.1);
    background: rgba(15, 23, 42, 0.9);
    box-shadow: var(--card-shadow);
}

.portfolio-card-content {
    padding: 15px;
}

.portfolio-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-card:hover img {
    transform: scale(1.08);
    opacity: 0.8;
}

.portfolio-content {
    padding: 25px;
}

.portfolio-content span {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.12);
    color: var(--accent-color);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 15px;
}

.portfolio-content h5 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
    min-height: 50px;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
}

.portfolio-content p {
    color: var(--secondary-text);
    font-size: 15px;
    line-height: 1.6;
    min-height: 80px;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* --------------------------------------------------
   Testimonials
   -------------------------------------------------- */
.testimonials {
    background: var(--bg-secondary);
}

.testimonial-card {
    background: rgba(15, 23, 42, 0.92);
    border-radius: 22px;
    padding: 35px;
    border: 1px solid rgba(148, 163, 184, 0.08);
    box-shadow: var(--card-shadow);
    height: 100%;
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(249, 115, 22, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    font-size: 26px;
}

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

/* --------------------------------------------------
   Blog
   -------------------------------------------------- */
.blog-card {
    background: rgba(15, 23, 42, 0.9);
    border-radius: 22px;
    border: 1px solid rgba(148, 163, 184, 0.08);
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.blog-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.blog-content {
    padding: 25px;
}

.blog-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--muted-text);
    font-size: 14px;
    margin-bottom: 15px;
}

.blog-content h5 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
}

/* --------------------------------------------------
   Contact
   -------------------------------------------------- */
.contact-card {
    background: rgba(15, 23, 42, 0.9);
    border-radius: 22px;
    border: 1px solid rgba(148, 163, 184, 0.08);
    padding: 40px;
    box-shadow: var(--card-shadow);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-bottom: 35px;
}

.contact-info-item {
    background: rgba(15, 23, 42, 0.75);
    border-radius: 18px;
    border: 1px solid #fff;
    padding: 25px;
}

.contact-info-item h6 {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.contact-info-item p {
    color: #fff !important;
}

.contact-info-item .text-muted {
    color: #fff !important;
    opacity: 0.9;
}

.contact-form .form-control {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid #fff;
    padding: 14px 18px;
    border-radius: 14px;
    color: #fff;
}

.contact-form .form-control::placeholder {
    color: #fff !important;
    opacity: 0.7;
}

.contact-form .form-control:-ms-input-placeholder {
    color: #fff !important;
    opacity: 0.7;
}

.contact-form .form-control::-ms-input-placeholder {
    color: #fff !important;
    opacity: 0.7;
}

.contact-form .form-control:focus {
    border-color: #fff;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1);
    background: rgba(15, 23, 42, 0.8);
    color: #fff;
}

.contact-form label {
    color: #fff !important;
}

.contact-form .form-label {
    color: #fff !important;
}

/* --------------------------------------------------
   Footer
   -------------------------------------------------- */
footer {
    background: rgba(8, 12, 24, 0.95);
    border-top: 1px solid rgba(148, 163, 184, 0.08);
    padding: 70px 0 40px;
}

footer p,
footer a {
    color: var(--secondary-text);
    font-size: 15px;
}

footer h5 {
    color: var(--primary-text);
    font-weight: 600;
    margin-bottom: 18px;
}

.footer-bottom {
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    margin-top: 40px;
    padding-top: 30px;
    color: var(--muted-text);
    font-size: 14px;
}

.social-links a {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(249, 115, 22, 0.1);
    color: var(--accent-color);
    border-radius: 12px;
    margin-right: 10px;
}

.social-links a:hover {
    background: var(--accent-gradient);
    color: #0f172a;
}

.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    background: var(--accent-gradient);
    color: #0f172a;
    box-shadow: var(--card-shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-6px);
}

.particle {
    position: absolute;
    background: rgba(249, 115, 22, 0.25);
    border-radius: 50%;
    animation: particleFloat linear infinite;
}

@keyframes particleFloat {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0;
    }

    25% {
        opacity: 0.6;
    }

    50% {
        transform: translateY(-30px) scale(1.15);
        opacity: 0.9;
    }

    100% {
        transform: translateY(-60px) scale(0.85);
        opacity: 0;
    }
}

/* --------------------------------------------------
   Utilities & Animations
   -------------------------------------------------- */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-14px);
    }
}

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

.text-accent {
    color: var(--accent-color) !important;
}

.badge-soft {
    background: rgba(249, 115, 22, 0.1);
    color: var(--accent-color);
    border-radius: 999px;
    padding: 8px 18px;
    font-weight: 600;
}

.backdrop-card {
    background: rgba(15, 23, 42, 0.8);
    border-radius: 22px;
    border: 1px solid rgba(148, 163, 184, 0.1);
    box-shadow: var(--card-shadow);
    padding: 30px;
    color: #000;
}

.backdrop-card h4,
.backdrop-card p,
.backdrop-card .text-muted,
.backdrop-card p.text-muted {
    color: #fff !important;
    opacity: 0.9;
}

.backdrop-card * {
    color: #fff !important;
}

.backdrop-card .text-muted {
    color: #fff !important;
    opacity: 0.9;
}

/* --------------------------------------------------
   Responsive
   -------------------------------------------------- */
@media (max-width: 1200px) {
    .hero h1 {
        font-size: 56px;
    }
}

@media (max-width: 992px) {
    body {
        padding-top: 70px;
    }

    .navbar-collapse {
        background: rgba(15, 23, 42, 0.95);
        border-radius: 16px;
        padding: 20px;
        margin-top: 15px;
        border: 1px solid rgba(148, 163, 184, 0.08);
    }

    .hero {
        text-align: center;
    }

    .hero p {
        margin: 0 auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    section {
        padding: 70px 0;
    }

    .section-title {
        font-size: 36px;
    }

    .hero h1 {
        font-size: 46px;
    }

    .hero-stats {
        grid-template-columns: repeat(2, minmax(120px, 1fr));
    }

    .about-card,
    .contact-card {
        padding: 30px;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 38px;
    }

    .hero-stats {
        grid-template-columns: repeat(2, minmax(100px, 1fr));
        gap: 14px;
    }

    .services-grid,
    .about-highlights {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}

/* Scripts Page Specific Styles */
.portfolio-card .portfolio-content h5 {
    color: var(--primary-text);
}

.portfolio-card .portfolio-content p {
    color: var(--secondary-text);
}

.portfolio-card .portfolio-content span {
    background: rgba(249, 115, 22, 0.12);
    color: var(--accent-color);
}

.form-select {
    background: rgba(15, 23, 42, 0.65) !important;
    border: 1px solid rgba(148, 163, 184, 0.15) !important;
    color: #fff !important;
}

.form-select option {
    background: rgba(15, 23, 42, 0.95);
    color: #fff;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

.pagination .page-link {
    background: rgba(15, 23, 42, 0.8) !important;
    border: 1px solid rgba(148, 163, 184, 0.2) !important;
    color: #fff !important;
    transition: var(--transition);
}

.pagination .page-link:hover {
    background: rgba(249, 115, 22, 0.2) !important;
    border-color: rgba(249, 115, 22, 0.4) !important;
    color: var(--accent-color) !important;
}

.pagination .page-item.active .page-link {
    background: var(--accent-gradient) !important;
    border-color: var(--accent-color) !important;
    color: #0f172a !important;
}

.pagination .page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
}

.input-group-text {
    background: rgba(249, 115, 22, 0.15) !important;
    border: 1px solid rgba(249, 115, 22, 0.3) !important;
    color: var(--accent-color) !important;
}

/* Form Controls Dark Theme */
.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

.form-control:-ms-input-placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

.form-control::-ms-input-placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

.form-control:focus {
    background: rgba(15, 23, 42, 0.8) !important;
    border-color: #fff !important;
    color: #fff !important;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1) !important;
}

.input-group .btn {
    transition: var(--transition);
}

.input-group .btn:hover {
    background: rgba(249, 115, 22, 0.2) !important;
    border-color: rgba(249, 115, 22, 0.4) !important;
    color: var(--accent-color) !important;
}

/* Alert Styles for Dark Theme */
.alert-danger {
    background: rgba(239, 68, 68, 0.15) !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
    color: #fff !important;
}

.alert-success {
    background: rgba(16, 185, 129, 0.15) !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
    color: #fff !important;
}

.btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
}

.dropdown-menu {
    background: rgba(15, 23, 42, 0.98) !important;
    border: 1px solid rgba(249, 115, 22, 0.2) !important;
    backdrop-filter: blur(30px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(249, 115, 22, 0.1) inset;
    padding: 8px 0;
    border-radius: 16px;
    z-index: 1050 !important;
    margin-top: 0;
    display: none;
    position: absolute !important;
    top: calc(100% + 10px) !important;
    left: auto !important;
    right: 0 !important;
    transform: translateY(0) !important;
    min-width: 240px;
    animation: dropdownFadeIn 0.3s ease-out;
    overflow: hidden;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-menu.show {
    display: block !important;
}

.dropdown-item {
    color: #fff !important;
    padding: 12px 20px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    font-weight: 500;
    font-size: 14px;
    position: relative;
    border-left: 3px solid transparent;
    text-decoration: none;
}

.dropdown-item i {
    width: 20px;
    text-align: center;
    margin-right: 12px;
    font-size: 16px;
    transition: all 0.2s ease;
    color: var(--secondary-text);
}

/* User info header in dropdown */
.dropdown-menu>li:first-child {
    background: rgba(249, 115, 22, 0.05);
    margin: 0;
}

.dropdown-menu>li:first-child:hover {
    background: rgba(249, 115, 22, 0.05) !important;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: linear-gradient(90deg, rgba(249, 115, 22, 0.15) 0%, rgba(249, 115, 22, 0.05) 100%) !important;
    color: var(--accent-color) !important;
    border-left-color: var(--accent-color);
    padding-left: 24px;
    transform: translateX(4px);
}

.dropdown-item:hover i,
.dropdown-item:focus i {
    transform: scale(1.1);
    color: var(--accent-color);
}

.dropdown-item:active {
    background: rgba(249, 115, 22, 0.2) !important;
    transform: translateX(2px);
}

.dropdown-divider {
    border-color: rgba(249, 115, 22, 0.2) !important;
    margin: 8px 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(249, 115, 22, 0.3), transparent);
}

.dropdown-toggle::after {
    margin-left: 8px;
    border-top-color: var(--secondary-text);
}

.dropdown-toggle:hover::after,
.dropdown-toggle.show::after {
    border-top-color: var(--accent-color);
}

/* Navbar dropdown button styling */
.navbar .dropdown-toggle {
    color: var(--secondary-text) !important;
}

.navbar .dropdown-toggle:hover,
.navbar .dropdown-toggle.show {
    color: var(--primary-text) !important;
}

/* Ensure dropdown doesn't affect navbar height */
.navbar .dropdown {
    position: relative;
}

.navbar .dropdown-menu {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    right: 0 !important;
    left: auto !important;
    margin-top: 0 !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(249, 115, 22, 0.1) inset;
    transform: translateY(0) !important;
}

/* Mobile/Tablet dropdown positioning */
@media (max-width: 991px) {
    .navbar .dropdown-menu {
        right: 0 !important;
        left: auto !important;
        min-width: 220px;
        top: calc(100% + 6px) !important;
        margin-top: 0 !important;
    }

    .navbar .dropdown-item {
        padding: 10px 18px;
        font-size: 13px;
    }
}

/* Modal Styles */
.modal-content {
    background: rgba(15, 23, 42, 0.95) !important;
    border: 1px solid rgba(148, 163, 184, 0.2) !important;
    border-radius: 22px;
    backdrop-filter: blur(20px);
}

.modal-header {
    border-bottom: 1px solid rgba(148, 163, 184, 0.2) !important;
    padding: 20px 25px;
}

.modal-body {
    padding: 25px;
}

.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

/* Cart Badge */
.nav-link .badge {
    font-size: 10px;
    padding: 2px 6px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Navbar Right Side */
.navbar .d-flex.gap-3 {
    gap: 12px !important;
}

.navbar .btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

/* --------------------------------------------------
   Admin Panel Styles
   -------------------------------------------------- */
.admin-sidebar {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--border-color);
    min-height: calc(100vh - 80px);
    padding: 30px 0;
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px);
    overflow-y: auto;
}

.admin-sidebar .nav {
    padding: 0 15px;
}

.admin-sidebar .nav-item {
    margin-bottom: 8px;
}

.admin-sidebar .nav-link {
    color: var(--secondary-text) !important;
    padding: 12px 20px !important;
    border-radius: 12px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    font-weight: 500;
    border: 1px solid transparent;
}

.admin-sidebar .nav-link:hover {
    background: rgba(249, 115, 22, 0.1) !important;
    color: var(--accent-color) !important;
    border-color: rgba(249, 115, 22, 0.2);
    transform: translateX(5px);
}

.admin-sidebar .nav-link.active {
    background: rgba(249, 115, 22, 0.15) !important;
    color: var(--accent-color) !important;
    border-color: rgba(249, 115, 22, 0.3);
    font-weight: 600;
}

.admin-sidebar .nav-link i {
    width: 20px;
    text-align: center;
}

.admin-content {
    padding: 30px;
    background: var(--bg-color);
    min-height: calc(100vh - 80px);
}

.admin-content h1,
.admin-content h2,
.admin-content h3,
.admin-content h4,
.admin-content h5,
.admin-content h6 {
    color: var(--primary-text);
}

.admin-content .text-muted {
    color: var(--secondary-text) !important;
}

/* Admin Cards */
.admin-content .card {
    background: rgba(15, 23, 42, 0.65) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 16px;
    backdrop-filter: blur(20px);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.admin-content .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(8, 15, 35, 0.6);
}

.admin-content .card-body {
    padding: 25px;
    color: var(--primary-text);
}

.admin-content .card-header {
    background: rgba(15, 23, 42, 0.85) !important;
    border-bottom: 1px solid var(--border-color) !important;
    padding: 20px 25px;
    color: var(--primary-text);
}

/* Admin Stat Cards */
.admin-content .bg-primary,
.admin-content .bg-success,
.admin-content .bg-info,
.admin-content .bg-warning,
.admin-content .bg-danger {
    background: var(--accent-gradient) !important;
}

/* Admin Buttons */
.admin-content .btn {
    border-radius: 10px;
    padding: 10px 20px;
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid transparent;
}

.admin-content .btn-primary {
    background: var(--accent-gradient);
    border: none;
    color: #fff;
}

.admin-content .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(249, 115, 22, 0.4);
}

.admin-content .btn-outline-primary {
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    background: transparent;
}

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

.admin-content .btn-outline-secondary {
    border: 1px solid var(--secondary-text);
    color: var(--secondary-text);
    background: transparent;
}

.admin-content .btn-outline-secondary:hover {
    background: var(--secondary-text);
    color: var(--bg-color);
    transform: translateY(-2px);
}

.admin-content .btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    color: #fff;
}

.admin-content .btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border: none;
    color: #fff;
}

.admin-content .btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border: none;
    color: #fff;
}

/* Admin Tables */
.admin-content .table {
    color: var(--primary-text);
    background: rgba(15, 23, 42, 0.65);
    border-radius: 12px;
    overflow: hidden;
}

.admin-content .table thead {
    background: rgba(249, 115, 22, 0.1);
    border-bottom: 2px solid rgba(249, 115, 22, 0.2);
}

.admin-content .table thead th {
    color: var(--accent-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    padding: 15px;
    border: none;
}

.admin-content .table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.admin-content .table tbody tr:hover {
    background: rgba(249, 115, 22, 0.05);
}

.admin-content .table tbody td {
    padding: 15px;
    border: none;
    color: #000;
    vertical-align: middle;
}

.admin-content .table .bg-light {
    background: rgba(249, 115, 22, 0.1) !important;
}

/* Admin Forms */
.admin-content .form-control,
.admin-content .form-select {
    background: rgba(15, 23, 42, 0.65) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--primary-text) !important;
    border-radius: 10px;
    padding: 12px 15px;
    transition: var(--transition);
}

.admin-content .form-control:focus,
.admin-content .form-select:focus {
    background: rgba(15, 23, 42, 0.85) !important;
    border-color: var(--accent-color) !important;
    color: var(--primary-text) !important;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
    outline: none;
}

.admin-content .form-control::placeholder {
    color: var(--muted-text) !important;
}

.admin-content .form-label {
    color: var(--primary-text);
    font-weight: 500;
    margin-bottom: 8px;
}

/* Admin Badges */
.admin-content .badge {
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 12px;
}

.admin-content .badge.bg-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
}

.admin-content .badge.bg-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
}

.admin-content .badge.bg-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
}

.admin-content .badge.bg-info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
}

/* Admin Alerts */
.admin-content .alert {
    border-radius: 12px;
    border: 1px solid;
    padding: 15px 20px;
    backdrop-filter: blur(10px);
}

.admin-content .alert-warning {
    background: rgba(245, 158, 11, 0.15) !important;
    border-color: rgba(245, 158, 11, 0.3) !important;
    color: #fbbf24 !important;
}

.admin-content .alert-success {
    background: rgba(16, 185, 129, 0.15) !important;
    border-color: rgba(16, 185, 129, 0.3) !important;
    color: #34d399 !important;
}

.admin-content .alert-danger {
    background: rgba(239, 68, 68, 0.15) !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
    color: #fca5a5 !important;
}

.admin-content .alert-info {
    background: rgba(59, 130, 246, 0.15) !important;
    border-color: rgba(59, 130, 246, 0.3) !important;
    color: #93c5fd !important;
}

/* Admin Pagination */
.admin-content .pagination {
    gap: 8px;
}

.admin-content .page-link {
    background: rgba(15, 23, 42, 0.65) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--primary-text) !important;
    padding: 10px 15px;
    border-radius: 10px;
    transition: var(--transition);
}

.admin-content .page-link:hover {
    background: rgba(249, 115, 22, 0.15) !important;
    border-color: var(--accent-color) !important;
    color: var(--accent-color) !important;
    transform: translateY(-2px);
}

.admin-content .page-item.active .page-link {
    background: var(--accent-gradient) !important;
    border-color: var(--accent-color) !important;
    color: #fff !important;
}

/* Admin Responsive */
@media (max-width: 768px) {
    .admin-sidebar {
        position: fixed;
        left: -100%;
        top: 80px;
        z-index: 1000;
        width: 250px;
        transition: left 0.3s ease;
    }

    .admin-sidebar.show {
        left: 0;
    }

    .admin-content {
        padding: 20px 15px;
    }
}

/* Responsive Navbar */
/* Responsive Navbar Mobile Sidebar */
@media (max-width: 991px) {
    .navbar .container {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: nowrap !important;
        width: 100% !important;
    }

    .navbar-brand {
        flex-shrink: 0;
        margin-right: auto !important;
        white-space: nowrap;
        z-index: 1060;
    }

    /* Mobile Menu Sidebar (Offcanvas style) */
    .navbar-collapse {
        position: fixed !important;
        top: 0;
        left: -300px;
        width: 280px;
        height: 100vh;
        background: #0f172a !important;
        backdrop-filter: blur(25px);
        z-index: 1050;
        display: block !important;
        visibility: hidden;
        margin: 0 !important;
        padding: 90px 25px 40px !important;
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-right: 1px solid rgba(249, 115, 22, 0.1);
        overflow-y: auto;
    }

    .navbar-collapse.show {
        left: 0;
        visibility: visible;
    }

    /* Mobile Quick Icons (Top Right) */
    .navbar .d-flex.d-lg-none {
        gap: 8px !important;
        align-items: center;
        flex-shrink: 0;
        margin-left: auto;
        z-index: 1060;
    }

    .navbar .d-flex.d-lg-none .nav-link,
    .navbar .d-flex.d-lg-none .btn {
        padding: 6px 10px !important;
        font-size: 14px;
        white-space: nowrap;
        color: var(--secondary-text) !important;
    }

    .navbar .d-flex.d-lg-none .btn-sm {
        padding: 6px 12px !important;
        font-size: 12px;
    }

    .navbar .d-flex.d-lg-none .navbar-toggler {
        padding: 8px 10px !important;
        margin-left: 5px;
        border: none !important;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 8px;
    }

    /* User Profile Dropdown on Mobile (Ensuring it stays on the right) */
    .navbar .d-flex.d-lg-none .dropdown-menu {
        position: absolute !important;
        top: calc(100% + 10px) !important;
        right: 0 !important;
        left: auto !important;
        width: 240px !important;
        background: #0f172a !important;
        border: 1px solid rgba(249, 115, 22, 0.2) !important;
        box-shadow: 0 10px 50px rgba(0, 0, 0, 0.6) !important;
        padding: 10px !important;
        transform: none !important;
        display: none;
    }

    .navbar .d-flex.d-lg-none .dropdown-menu.show {
        display: block;
    }

    .navbar-nav {
        margin-bottom: 25px !important;
    }

    .navbar-nav .nav-item {
        margin-bottom: 5px;
        width: 100%;
    }

    .navbar-nav .nav-link {
        padding: 12px 15px !important;
        border-radius: 10px;
        font-size: 15px;
        transition: all 0.3s ease;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .navbar-nav .nav-link:hover {
        background: rgba(249, 115, 22, 0.1);
        color: var(--accent-color) !important;
        padding-left: 20px !important;
    }

    .navbar-nav .nav-link::after {
        display: none;
        /* Hide the underline effect in mobile sidebar */
    }

    /* Dropdown inside Mobile Sidebar */
    .navbar .dropdown-menu {
        position: static !important;
        background: rgba(255, 255, 255, 0.03) !important;
        border: none !important;
        box-shadow: none !important;
        padding-left: 15px !important;
        margin-top: 5px !important;
        transform: none !important;
    }
}

.navbar .d-flex.gap-3 {
    flex-direction: column;
    width: 100%;
    gap: 10px !important;
}

.navbar .dropdown {
    width: 100%;
}

.navbar .dropdown-toggle {
    width: 100%;
    justify-content: space-between;
}

.navbar .dropdown-menu {
    width: 100%;
    position: absolute !important;
    transform: none !important;
}

.navbar .dropdown-toggle span {
    display: inline !important;
}


/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    left: 20px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 28px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background: #20BA5A;
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
    color: #fff;
    text-decoration: none;
}

.whatsapp-float i {
    font-size: 32px;
}

.whatsapp-tooltip {
    position: absolute;
    left: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 23, 42, 0.95);
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(148, 163, 184, 0.2);
    backdrop-filter: blur(10px);
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-right-color: rgba(15, 23, 42, 0.95);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    left: 75px;
}

/* WhatsApp Pulse Animation */
@keyframes pulse {
    0% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }

    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4), 0 0 0 10px rgba(37, 211, 102, 0.1);
    }

    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
}

/* Responsive WhatsApp Button */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 15px;
        left: 15px;
        font-size: 24px;
    }

    .whatsapp-float i {
        font-size: 28px;
    }

    .whatsapp-tooltip {
        display: none;
    }
}

@media (max-width: 480px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 10px;
        left: 10px;
        font-size: 22px;
    }

    .whatsapp-float i {
        font-size: 24px;
    }
}

/* --------------------------------------------------
   Orders Table Styles
   -------------------------------------------------- */
.orders-table-container {
    overflow: hidden;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.95) !important;
}

.orders-table {
    background: transparent;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0;
}

.orders-table thead th {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.15) 0%, rgba(251, 146, 60, 0.1) 100%);
    border: none;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.orders-table thead th:first-child {
    border-top-left-radius: 16px;
}

.orders-table thead th:last-child {
    border-top-right-radius: 16px;
}

.orders-table tbody tr {
    background: rgba(255, 255, 255, 0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.orders-table tbody tr::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.orders-table tbody tr:hover {
    background: linear-gradient(90deg, rgba(249, 115, 22, 0.15) 0%, rgba(251, 146, 60, 0.1) 100%) !important;
    transform: translateX(4px);
    box-shadow: -4px 0 15px rgba(249, 115, 22, 0.2);
}

.orders-table tbody tr:hover::before {
    opacity: 1;
}

.orders-table tbody td {
    border: none;
    color: #000;
    vertical-align: middle;
    position: relative;
}

.orders-table tbody tr:last-child {
    border-bottom: none;
}

.orders-table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 16px;
}

.orders-table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 16px;
}

/* Order row animations */
.order-row {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.order-row:nth-child(1) {
    animation-delay: 0.1s;
}

.order-row:nth-child(2) {
    animation-delay: 0.2s;
}

.order-row:nth-child(3) {
    animation-delay: 0.3s;
}

.order-row:nth-child(4) {
    animation-delay: 0.4s;
}

.order-row:nth-child(5) {
    animation-delay: 0.5s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Order image wrapper */
.order-image-wrapper {
    transition: all 0.3s ease;
}

.order-image-wrapper:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.3) !important;
}

.order-image-placeholder {
    transition: all 0.3s ease;
}

.order-image-placeholder:hover {
    transform: scale(1.05) rotate(5deg);
}

/* Order ID badge */
.order-id-badge {
    transition: all 0.3s ease;
}

.order-id-badge:hover {
    background: rgba(249, 115, 22, 0.2) !important;
    transform: scale(1.05);
}

/* Price display */
.price-display {
    transition: all 0.3s ease;
}

.price-display:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.3);
}

/* Status badges */
.status-badge {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.status-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.status-badge:hover::before {
    left: 100%;
}

.status-success:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.3) !important;
}

.status-pending:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.3) !important;
}

.status-failed:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.3) !important;
}

/* Download button */
.download-btn {
    position: relative;
    overflow: hidden;
}

.download-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.download-btn:hover::before {
    width: 300px;
    height: 300px;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.4) !important;
}

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

/* Mobile order cards */
.order-card-mobile {
    transition: all 0.3s ease;
}

.order-card-mobile:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3) !important;
    border-color: rgba(249, 115, 22, 0.4) !important;
}

/* Order count badge */
.order-count-badge {
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* Responsive table adjustments */
@media (max-width: 991.98px) {
    .orders-table {
        font-size: 14px;
    }

    .orders-table thead th {
        padding: 15px 10px;
        font-size: 12px;
    }

    .orders-table tbody td {
        padding: 15px 10px;
    }
}

/* Dashboard Enhancement Styles */
.badge-soft-success {
    background-color: rgba(16, 185, 129, 0.1) !important;
    color: #10b981 !important;
    border: 1px solid rgba(16, 185, 129, 0.2) !important;
}

.badge-soft-warning {
    background-color: rgba(245, 158, 11, 0.1) !important;
    color: #f59e0b !important;
    border: 1px solid rgba(245, 158, 11, 0.2) !important;
}

.badge-soft-danger {
    background-color: rgba(239, 68, 68, 0.1) !important;
    color: #ef4444 !important;
    border: 1px solid rgba(239, 68, 68, 0.2) !important;
}

.btn-accent {
    background: var(--accent-gradient) !important;
    color: #0f172a !important;
    border: none !important;
    font-weight: 600 !important;
}

.btn-accent:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.fw-600 {
    font-weight: 600 !important;
}

/* Disable hover effects for specific buttons */
.no-hover-btn:hover {
    background: transparent !important;
    color: var(--primary-text) !important;
    border-color: rgba(148, 163, 184, 0.3) !important;
    transform: none !important;
    box-shadow: none !important;
}

.no-hover-btn.btn-outline-danger:hover {
    color: #ef4444 !important;
    border-color: #ef4444 !important;
}

.table-responsive * {
    color: #000 !important;
}

#blog .backdrop-card{
    padding: 0px !important;
    border: 1px solid rgba(148, 163, 184, 0.1) !important;
}

.blog-section .backdrop-card{
    padding: 0px !important;
    border: 1px solid rgba(148, 163, 184, 0.1) !important;
}

/* --------------------------------------------------
   Text Overflow & Wrapping - Global Rules
   -------------------------------------------------- */
/* Ensure text wraps properly in grid views */
.row .col-12,
.row .col-md-4,
.row .col-md-6,
.row .col-lg-3,
.row .col-lg-4,
.row .col-lg-6,
.row .col-lg-9,
.row .col-xl-6,
.backdrop-card,
.portfolio-card,
.portfolio-content,
.service-card,
.blog-card {
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Ensure headings and text in cards wrap properly */
.backdrop-card h5,
.backdrop-card h6,
.portfolio-content h5,
.service-card h4,
.blog-card h5,
.card-body h5,
.card-body h4 {
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Ensure paragraphs wrap properly */
.backdrop-card p,
.portfolio-content p,
.service-card p,
.blog-card p,
.card-body p {
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Fix flex containers to allow text wrapping */
.d-flex,
.flex-grow-1 {
    min-width: 0;
}

/* Ensure text in grid items doesn't overflow */
[class*="col-"] {
    min-width: 0;
}

[class*="col-"] * {
    max-width: 100%;
}