/* Portfolio Carousel Styles */
#portfolioSlider {
    width: 100%;
}

#portfolioSlider .carousel-item {
    padding: 0;
}

#portfolioSlider .card {
    width: 100%;
    max-width: 100%;
    margin: 0;
}

#portfolioSlider .card-img-top {
    width: 100%;
    height: auto;
    object-fit: contain;
}

#portfolioSlider .carousel-control-prev,
#portfolioSlider .carousel-control-next {
    width: 5%;
    background-color: rgba(0, 0, 0, 0.3);
}

#portfolioSlider .carousel-control-prev:hover,
#portfolioSlider .carousel-control-next:hover {
    background-color: rgba(0, 0, 0, 0.5);
}

#portfolioSlider .card {
    margin: 0 auto;
    max-width: 600px;
}

#portfolioSlider .carousel-indicators {
    bottom: -50px;
}

#portfolioSlider .carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #6c757d;
    margin: 0 5px;
}

#portfolioSlider .carousel-indicators button.active {
    background-color: #007bff;
}


.portfolio-card {
    transition: transform 0.3s ease-in-out;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    background-color: #2b3035;
    color: #fff;
}

.portfolio-card:hover {
    transform: translateY(-10px);
}

.portfolio-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.badge {
    font-size: 0.8rem;
    padding: 0.5em 1em;
}


/* Portfolio Carousel Styles */
.carousel-item {
    height: 500px;
}

.carousel-item img {
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 5px;
}

/* Portfolio Styles */
.portfolio-item {
    transition: transform 0.3s ease;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.portfolio-item:hover {
    transform: translateY(-5px);
}

.portfolio-item img {
    height: 250px;
    object-fit: cover;
}

.portfolio-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05));
    padding: 80px 0;
}

/* Custom styles */
:root {
    --primary-color: #00d2ff;
    --secondary-neon: #ff007a;
    --bg-dark: #0a0f18;
    /* Cyber Slate Deep Background */
    --card-bg: rgba(16, 24, 39, 0.7);
    /* Deep Slate Card */
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-light: #f8fafc;
    --text-muted: #94a3b8;
    --gradient-hero: radial-gradient(circle at 50% 50%, #111827 0%, #0a0f18 100%);
    --gradient-accent: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%);
    --primary-neon: #00f3ff;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    padding-top: 70px;
    background-color: var(--bg-dark);
    color: var(--text-main);
}

.navbar {
    background: rgba(15, 23, 42, 0.8) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 800;
    letter-spacing: -1px;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero {
    padding: 120px 0;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-robot-container {
    position: relative;
    animation: floatRobot 6s ease-in-out infinite;
    z-index: 1;
}

.hero-robot-img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 30px rgba(0, 210, 255, 0.3));
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(5px);
}

@keyframes floatRobot {

    0%,
    100% {
        transform: translateY(0) rotate(0) scale(1);
    }

    50% {
        transform: translateY(-30px) rotate(2deg) scale(1.05);
    }
}

/* Decorative AI Elements */
.ai-decorator {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.ai-decorator:hover {
    opacity: 0.8;
}

.glow-primary {
    color: var(--primary-color);
    filter: drop-shadow(0 0 15px var(--primary-color));
}

.glow-secondary {
    color: var(--secondary-neon);
    filter: drop-shadow(0 0 15px var(--secondary-neon));
}

.holographic-mask {
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0.3));
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0.3));
}

.orbit-anim {
    animation: orbit 10s linear infinite;
}

@keyframes orbit {
    from {
        transform: rotate(0deg) translateX(50px) rotate(0deg);
    }

    to {
        transform: rotate(360deg) translateX(50px) rotate(-360deg);
    }
}

.float-slow {
    animation: floatSlow 8s ease-in-out infinite;
}

@keyframes floatSlow {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(15px, -20px);
    }
}

.scan-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--primary-color), transparent);
    animation: scanMove 3s linear infinite;
    opacity: 0.3;
}

@keyframes scanMove {
    0% {
        top: 0%;
    }

    100% {
        top: 100%;
    }
}

/* Digital Module & HUD Elements */
.module-card {
    position: relative;
    border: 1px solid var(--glass-border);
    background: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
    z-index: 1;
}

.module-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(0deg,
            transparent,
            transparent 1px,
            rgba(0, 210, 255, 0.05) 1px,
            rgba(0, 210, 255, 0.05) 2px);
    z-index: -1;
    pointer-events: none;
}

.module-card:hover {
    border-color: var(--primary-neon);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 243, 255, 0.1);
}

.module-status {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-neon);
    box-shadow: 0 0 10px var(--primary-neon);
    animation: pulseStatus 2s infinite;
}

@keyframes pulseStatus {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.module-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(0, 210, 255, 0.3));
}

.hero::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 210, 255, 0.1) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    z-index: 0;
}

.hero::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 0, 122, 0.05) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 2;
}

section {
    padding: 100px 0;
}

#services .card,
.portfolio-card,
.card {
    background: var(--card-bg);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    transition: all 0.5s ease;
}

.card:hover::before {
    background: radial-gradient(circle, rgba(0, 210, 255, 0.1) 0%, transparent 60%);
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.btn-primary {
    background: var(--gradient-accent);
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 210, 255, 0.3);
}

/* Quote Calculator Styles */
.quote-card {
    background: var(--card-bg);
    border: 1px solid var(--primary-color);
    padding: 2rem;
    border-radius: 24px;
}

.service-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    margin-bottom: 1rem;
    transition: background 0.3s ease;
    cursor: pointer;
}

.service-toggle:hover {
    background: rgba(255, 255, 255, 0.06);
}

.service-toggle.active {
    background: rgba(0, 210, 255, 0.1);
    border: 1px solid rgba(0, 210, 255, 0.3);
}

.price-display {
    font-size: 3.5rem;
    font-weight: 800;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 2px 2px, rgba(255, 255, 255, 0.03) 1px, transparent 0);
    background-size: 40px 40px;
}

/* Animation classes */
.fade-in {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.fade-in.active {
    opacity: 1;
}

.slide-in {
    transform: translateY(50px);
    opacity: 0;
    transition: transform 0.5s ease-out, opacity 0.5s ease-out;
}

.slide-in.active {
    transform: translateY(0);
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero {
        padding: 60px 0;
    }

    h1 {
        font-size: 2.5rem;
    }

    section {
        padding: 40px 0;
    }
}

/* Process & Use Case Card Styles */
.process-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    cursor: default;
}

.process-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.process-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.4);
    transition: all 0.3s ease;
}

.process-card:hover .process-icon {
    transform: scale(1.1);
    box-shadow: 0 0 30px var(--primary-color);
}

.text-primary-neon {
    color: var(--primary-neon);
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

.shadow-glow {
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.4);
}

.border-glass {
    border: 1px solid var(--glass-border) !important;
}

.x-small {
    font-size: 0.75rem;
}

.py-100 {
    padding: 100px 0;
}

.tracking-widest {
    letter-spacing: 0.2em;
}

/* Enhanced Portfolio & Use Case Cards */
.portfolio-card,
#use-cases .card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    z-index: 1;
}

.portfolio-card::after,
#use-cases .card::after {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(135deg, var(--primary-neon) 0%, transparent 40%, transparent 60%, var(--secondary-neon) 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: 16px;
}

.portfolio-card:hover::after,
#use-cases .card:hover::after {
    opacity: 0.3;
}

#use-cases .card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(0, 243, 255, 0.3);
}

#use-cases .card {
    background: rgba(10, 15, 24, 0.6);
}

/* Logo Scrolling Styles */
.logo-scroll-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 2rem 0;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.logo-scroll {
    display: flex;
    width: max-content;
    animation: scroll 30s linear infinite;
}

.logo-scroll:hover {
    animation-play-state: paused;
}

.logo-item {
    margin: 0 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.logo-item:hover {
    transform: scale(1.1);
}

.logo-item img {
    height: 150px;
    width: auto;
    object-fit: contain;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Image Zoom Modal Styles */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 900px;
    max-height: 80vh;
    object-fit: contain;
    animation: zoom 0.6s;
}

@keyframes zoom {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

@media only screen and (max-width: 700px) {
    .modal-content {
        width: 100%;
    }
}

/* Admin Dashboard Styles */
.dashboard-stats-row {
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-color);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.stat-content h3 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
}

.stat-content p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dashboard-table-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    padding: 1rem;
}

.table-custom {
    color: var(--text-main);
    margin-bottom: 0;
}

.table-custom thead th {
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    padding: 1rem;
}

.table-custom tbody td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem;
    vertical-align: middle;
}

.status-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-draft {
    background: rgba(255, 193, 7, 0.15);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.status-submitted {
    background: rgba(40, 167, 69, 0.15);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.status-approved {
    background: rgba(23, 162, 184, 0.15);
    color: #17a2b8;
    border: 1px solid rgba(23, 162, 184, 0.3);
}

/* Client Proposal View Styles */
.proposal-container {
    max-width: 1000px;
    margin: 3rem auto;
}

.proposal-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--glass-border);
}

.proposal-title {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.proposal-meta {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.feature-category-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.feature-category-header {
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.feature-category-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-item {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.feature-item:last-child {
    border-bottom: none;
}

.feature-info h5 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    font-weight: 600;
}

.feature-info p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.feature-cost {
    font-weight: 700;
    color: var(--text-main);
    font-size: 1.1rem;
}

.client-request-badge {
    background: rgba(0, 210, 255, 0.15);
    color: var(--primary-color);
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
}

.add-request-area {
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid var(--glass-border);
}

.proposal-actions {
    position: sticky;
    bottom: 20px;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 3rem;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Utility Classes */
.hover-primary {
    transition: color 0.3s ease;
}

.hover-primary:hover {
    color: var(--primary-color) !important;
}

.transition-all {
    transition: all 0.3s ease;
}