/* Custom Styles for Professional Portfolio */

:root {
    --bg-dark: #0d1321;
    --bg-surface: #111827;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --accent: #4f46e5;
    --accent-light: #6366f1;
    --accent-soft: rgba(79, 70, 229, 0.15);
    --border: rgba(148, 163, 184, 0.15);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    background: radial-gradient(circle at top, rgba(79, 70, 229, 0.15), transparent 40%), #020617;
    padding-top: 80px;
    position: relative;
    overflow-x: hidden;
}

img,
img.img-fluid {
    max-width: 100%;
    height: auto;
}

/* Scroll Progress Bar */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: var(--scroll-progress, 0%);
    background: linear-gradient(90deg, var(--accent), #38bdf8);
    z-index: 1000;
    box-shadow: 0 0 20px rgba(79, 70, 229, 0.5);
    transition: width 0.1s ease;
}

.navbar {
    background: rgba(13, 19, 33, 0.92) !important;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(10, 15, 26, 0.98) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border-bottom-color: rgba(79, 70, 229, 0.2);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.6rem;
    letter-spacing: 0.06em;
    position: relative;
}

.navbar-brand::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
    transition: width 0.4s ease;
}

.navbar-brand:hover::after {
    width: 100%;
}

.nav-link {
    color: var(--text-secondary) !important;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding-bottom: 5px !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), #38bdf8);
    transition: width 0.4s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary) !important;
    transform: translateY(-2px);
}

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

section {
    padding: 140px 0 80px 0;
    position: relative;
    opacity: 1;
    animation: sectionFadeIn 0.8s ease forwards;
}

/* Button Styles with Ripple Effect */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
}

.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%);
}

.btn:active::before {
    animation: ripple 0.6s ease-out;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #38bdf8) !important;
    border: none !important;
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.25);
    font-weight: 600;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(79, 70, 229, 0.35) !important;
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.25) !important;
}

.btn-outline-primary {
    border: 1px solid rgba(79, 70, 229, 0.4) !important;
    color: var(--text-primary) !important;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, var(--accent), #38bdf8) !important;
    border-color: transparent !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(79, 70, 229, 0.3) !important;
}

/* Alert Styles */
.alert-success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(34, 197, 94, 0.05)) !important;
    border: 1px solid rgba(34, 197, 94, 0.3) !important;
    border-radius: 12px !important;
    color: #22c55e !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.1) !important;
    font-weight: 600 !important;
    padding: 12px 20px !important;
    margin: 0 !important;
}

.alert-success i {
    color: #16a34a !important;
}

/* Animations */
@keyframes ripple {
    to {
        width: 300px;
        height: 300px;
        opacity: 0;
    }
}

@keyframes sectionFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(79, 70, 229, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(79, 70, 229, 0.5);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

#about {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.95) 0%, rgba(13, 19, 33, 0.95) 100%);
    position: relative;
    overflow: hidden;
}

#about::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.35), transparent 65%);
    filter: blur(60px);
    opacity: 0.9;
}

#about::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.18), transparent 65%);
    filter: blur(60px);
}

#about h1 {
    font-size: clamp(2.5rem, 4vw, 4rem);
    margin-bottom: 1.2rem;
    font-weight: 800;
}

#about p {
    font-size: 1.05rem;
    max-width: 680px;
    opacity: 0.9;
}

#about .card {
    border: 1px solid rgba(148, 163, 184, 0.1);
    background: rgba(15, 23, 42, 0.85);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

#about img {
    border: 6px solid rgba(255, 255, 255, 0.08);
}

#skills,
#projects,
#contact {
    position: relative;
}

#skills {
    background: rgba(15, 23, 42, 0.95);
}

#skills h2,
#projects h2,
#contact h2 {
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: 0.04em;
}

#skills .list-group-item,
#skills .skill-badge {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 999px;
}

#skills .list-group-item {
    padding: 0.9rem 1rem;
    margin-bottom: 0.85rem;
    color: var(--text-primary);
}

#skills .list-group-item i {
    color: var(--accent);
}

#skills .skill-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

#skills .card,
#projects .card,
#about .card {
    color: var(--text-primary);
}

#skills {
    background: linear-gradient(180deg, rgba(10, 15, 26, 0.95) 0%, rgba(15, 23, 42, 0.98) 100%);
}

.skill-panel {
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.14);
    transition: all 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.skill-panel:hover {
    border-color: rgba(79, 70, 229, 0.4);
    background: rgba(16, 24, 43, 0.98);
    box-shadow: 0 40px 90px rgba(79, 70, 229, 0.18);
    transform: translateY(-10px) scale(1.01);
}

/* Service Cards */
.service-card {
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.14);
    transition: all 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-align: center;
}

.service-card:hover {
    border-color: rgba(79, 70, 229, 0.4);
    background: rgba(16, 24, 43, 0.98);
    box-shadow: 0 40px 90px rgba(79, 70, 229, 0.18);
    transform: translateY(-10px) scale(1.01);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent), #38bdf8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: white;
    box-shadow: 0 12px 24px rgba(79, 70, 229, 0.3);
}

.service-card h5 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.service-features li {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    padding-left: 1.2rem;
    position: relative;
}

.service-features li:before {
    content: "✓";
    color: var(--accent);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.skill-panel h5 {
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.skill-panel:hover h5 {
    color: #fff;
}

.skill-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: default;
}

.skill-pill:hover {
    background: rgba(79, 70, 229, 0.15);
    border-color: rgba(79, 70, 229, 0.4);
    transform: translateY(-2px) scale(1.05);
}

.skill-bar {
    display: grid;
    gap: 0.4rem;
    color: var(--text-secondary);
}

.skill-bar label {
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.skill-bar > div {
    height: 12px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
    transition: background 0.3s ease;
}

.skill-panel:hover .skill-bar > div {
    background: rgba(255, 255, 255, 0.12);
}

.skill-bar > div span {
    display: block;
    height: 100%;
    background: linear-gradient(135deg, var(--accent), #38bdf8);
    border-radius: 999px;
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 0 12px rgba(79, 70, 229, 0.4);
}

.skill-panel:hover .skill-bar > div span {
    box-shadow: 0 0 20px rgba(79, 70, 229, 0.6);
}

#projects {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.95) 0%, rgba(10, 15, 26, 1) 100%);
}

#projects {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.95) 0%, rgba(10, 15, 26, 1) 100%);
}

#projects .project-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 23, 42, 0.90);
    color: var(--text-primary);
    overflow: hidden;
    border-radius: 30px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.18);
    transition: all 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#projects .project-card:hover {
    transform: translateY(-16px) scale(1.02);
    box-shadow: 0 50px 130px rgba(79, 70, 229, 0.25);
    background: rgba(16, 24, 43, 0.98);
    border-color: rgba(79, 70, 229, 0.4);
}

#projects .project-card-image {
    position: relative;
    overflow: hidden;
    min-height: 220px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(56, 189, 248, 0.1));
}

#projects .project-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#projects .project-card:hover .project-card-image img {
    transform: scale(1.12) rotate(1deg);
}

#projects .project-card-body {
    padding: 1.75rem;
}

.project-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.project-badge {
    display: inline-block;
    background: rgba(79, 70, 229, 0.14);
    color: var(--accent);
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
}

.project-status {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    font-size: 0.82rem;
}

#projects .project-card-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

#projects .project-card-text {
    color: var(--text-secondary);
    line-height: 1.8;
}

#projects .project-tags span {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 0.45rem 0.8rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

#projects .btn-outline-primary {
    color: var(--text-primary);
    border: 1px solid rgba(79, 70, 229, 0.3);
    background: transparent;
    transition: all 0.25s ease;
}

#projects .btn-outline-primary:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--accent), #38bdf8);
    border-color: transparent;
}

#experience {
    background: rgba(10, 15, 26, 0.95);
}

.experience-timeline {
    position: relative;
    display: grid;
    gap: 1.2rem;
    padding-left: 2rem;
}

.experience-timeline::before {
    content: '';
    position: absolute;
    left: 22px;
    top: 16px;
    bottom: 16px;
    width: 2px;
    background: linear-gradient(180deg, rgba(79, 70, 229, 0.8), rgba(56, 189, 248, 0.1));
}

.experience-item {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 23, 42, 0.88);
    padding: 1.4rem 1.5rem 1.4rem 2.8rem;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    transition: all 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.experience-item:hover {
    border-color: rgba(79, 70, 229, 0.4);
    background: rgba(15, 23, 42, 0.98);
    box-shadow: 0 30px 70px rgba(79, 70, 229, 0.18);
    transform: translateX(12px) translateY(-4px);
}

.experience-item::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 1.4rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 8px rgba(79, 70, 229, 0.08);
    transition: all 0.35s ease;
}

.experience-item:hover::before {
    width: 26px;
    height: 26px;
    left: -15px;
    box-shadow: 0 0 0 10px rgba(79, 70, 229, 0.12);
}

.experience-date {
    display: inline-block;
    color: var(--accent);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
    font-weight: 700;
}

.experience-item h5 {
    font-size: 1.15rem;
    margin-bottom: 0.3rem;
}

.experience-item > p:nth-of-type(1) {
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
}

.experience-item > p:nth-of-type(2) {
    font-size: 0.95rem;
    line-height: 1.6;
}

.fade-up {
    opacity: 0;
    transform: translateY(24px);
    animation: fadeUp 0.8s ease forwards;
}

.fade-up.delay-1 {
    animation-delay: 0.15s;
}

.fade-up.delay-2 {
    animation-delay: 0.30s;
}

.fade-up.delay-3 {
    animation-delay: 0.45s;
}

.fade-up.delay-4 {
    animation-delay: 0.6s;
}

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

.testimonial-card {
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 28px;
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.16);
}

.testimonial-card p {
    color: var(--text-secondary);
    font-size: 0.98rem;
    line-height: 1.8;
}

.testimonial-author strong {
    color: var(--text-primary);
}

.testimonial-author p {
    color: rgba(203, 213, 225, 0.8);
    font-size: 0.9rem;
}

#projects .btn-primary {
    background: linear-gradient(135deg, var(--accent), #38bdf8);
    border: none;
}

#contact {
    background: rgba(10, 15, 26, 0.98);
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

#contact .form-control {
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: var(--text-primary);
}

#contact .form-control::placeholder {
    color: rgba(203, 213, 225, 0.7);
}

#contact .form-control:focus {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(79, 70, 229, 0.6);
    box-shadow: 0 0 0 0.2rem rgba(79, 70, 229, 0.18);
}

#contact .btn-primary {
    background: linear-gradient(135deg, #4f46e5, #38bdf8);
    border: none;
}

footer {
    background: transparent;
    color: rgba(203, 213, 225, 0.75);
}

footer a {
    color: rgba(203, 213, 225, 0.85);
}

footer a:hover {
    color: #ffffff;
}

.section-label {
    display: inline-block;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 0.75rem;
}

section h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

section h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -0.5rem;
    transform: translateX(-50%);
    width: 56px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.9), rgba(56, 189, 248, 0.9));
}

.btn-outline-light {
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: transparent;
    transition: background 0.25s ease, transform 0.25s ease;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

.feature-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.14);
    transition: transform 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(139, 92, 246, 0.25);
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(139, 92, 246, 0.14);
    color: var(--accent);
    font-size: 1.2rem;
}

.feature-card h5 {
    margin-bottom: 0.8rem;
    font-weight: 700;
}

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

.fade-up {
    opacity: 0;
    transform: translateY(28px);
    animation: fadeUp 0.8s cubic-bezier(0.35, 0.75, 0.25, 1) forwards;
}

.fade-up.delay-1 {
    animation-delay: 0.15s;
}

.fade-up.delay-2 {
    animation-delay: 0.3s;
}

.fade-up.delay-3 {
    animation-delay: 0.45s;
}

.fade-up.delay-4 {
    animation-delay: 0.6s;
}

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

/* Modal Styling */
.modal-content {
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
    color: var(--text-primary);
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 15, 26, 0.8);
}

.modal-title {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.5rem;
}

.modal-body {
    color: var(--text-secondary);
    line-height: 1.8;
}

.modal-body p {
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
}

.modal-body h6 {
    color: var(--text-primary);
    font-weight: 700;
    margin-top: 1.2rem;
    margin-bottom: 0.75rem;
}

.modal-body ul {
    color: var(--text-secondary);
    list-style-position: inside;
}

.modal-body li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.modal-body img {
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 15, 26, 0.8);
}

.modal-footer .btn-secondary {
    background: rgba(148, 163, 184, 0.2);
    border: 1px solid rgba(148, 163, 184, 0.3);
    color: var(--text-primary);
}

.modal-footer .btn-secondary:hover {
    background: rgba(148, 163, 184, 0.3);
    border-color: rgba(148, 163, 184, 0.4);
    color: var(--text-primary);
}

.modal-footer .btn-primary {
    background: linear-gradient(135deg, var(--accent), #38bdf8);
    border: none;
    color: white;
}

.modal-footer .btn-primary:hover {
    background: linear-gradient(135deg, #6366f1, #0ea5e9);
}

.btn-close {
    filter: brightness(0.9) invert(1);
}

@media (max-width: 992px) {
    section {
        padding: 100px 0 60px 0;
    }
}

/* Featured Products Section */
#products {
    background: linear-gradient(180deg, rgba(10, 15, 26, 0.95) 0%, rgba(15, 23, 42, 0.98) 100%);
}

.product-card {
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    padding: 2rem;
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.14);
    transition: all 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    border-color: rgba(79, 70, 229, 0.4);
    background: rgba(16, 24, 43, 0.98);
    box-shadow: 0 45px 100px rgba(79, 70, 229, 0.2);
    transform: translateY(-12px) scale(1.01);
}

.product-header {
    margin-bottom: 1rem;
}

.product-header h5 {
    color: var(--text-primary);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.product-badge {
    display: inline-block;
    background: rgba(79, 70, 229, 0.14);
    color: var(--accent);
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.product-description {
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
    line-height: 1.7;
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.feature-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
}

.product-tech {
    flex-grow: 1;
}

.tech-pill {
    display: inline-block;
    background: rgba(79, 70, 229, 0.08);
    border: 1px solid rgba(79, 70, 229, 0.2);
    color: var(--accent);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Case Studies Section */
#case-studies {
    background: rgba(10, 15, 26, 0.95);
}

.case-study-card {
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    padding: 2rem;
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.14);
    transition: all 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.case-study-card:hover {
    border-color: rgba(79, 70, 229, 0.4);
    background: rgba(16, 24, 43, 0.98);
    box-shadow: 0 45px 100px rgba(79, 70, 229, 0.2);
    transform: translateY(-12px) scale(1.01);
}

.case-study-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.case-study-header h5 {
    color: var(--text-primary);
    font-size: 1.3rem;
    margin: 0;
    flex: 1;
}

.case-type {
    display: inline-block;
    background: rgba(79, 70, 229, 0.14);
    color: var(--accent);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
    margin-left: 1rem;
}

.case-problem,
.case-solution,
.case-impact {
    margin-bottom: 1.2rem;
}

.case-problem h6,
.case-solution h6,
.case-impact h6 {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.case-problem p,
.case-solution p {
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.7;
}

.impact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.impact-list li {
    color: var(--text-secondary);
    padding-left: 1.5rem;
    margin-bottom: 0.6rem;
    position: relative;
}

.impact-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

.case-tech {
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.case-tech-pill {
    display: inline-block;
    background: rgba(79, 70, 229, 0.08);
    border: 1px solid rgba(79, 70, 229, 0.2);
    color: var(--accent);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.case-tech-pill:hover {
    background: rgba(79, 70, 229, 0.15);
    border-color: rgba(79, 70, 229, 0.4);
    transform: translateY(-1px);
}

/* Testimonial Card Enhancements */
.testimonial-card {
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    transition: all 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.testimonial-card:hover {
    background: rgba(16, 24, 43, 0.98);
    border-color: rgba(79, 70, 229, 0.3);
    box-shadow: 0 30px 70px rgba(79, 70, 229, 0.15);
    transform: translateY(-8px) scale(1.02);
}

.testimonial-card p {
    transition: color 0.3s ease;
}

.testimonial-card:hover p {
    color: #e0e7ff;
}

/* Feature Card Enhancements */
.feature-card {
    transition: all 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.03);
    border-color: rgba(79, 70, 229, 0.4) !important;
}

.feature-icon {
    transition: all 0.35s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.15) rotate(-5deg);
    background: rgba(139, 92, 246, 0.25) !important;
}

/* Smooth Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.5);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent), #38bdf8);
    border-radius: 10px;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #6366f1, #0ea5e9);
    box-shadow: 0 0 10px rgba(79, 70, 229, 0.5);
}

/* Text Selection Styling */
::selection {
    background: rgba(79, 70, 229, 0.5);
    color: #fff;
}

/* Loading Animation */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* Image Loaded Animation */
img.loaded {
    animation: fadeInImage 0.6s ease-out;
}

@keyframes fadeInImage {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 992px) {
    section {
        padding: 100px 0 60px 0;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    .navbar-brand {
        font-size: 1.3rem;
    }
    #about h1 {
        font-size: 2.5rem;
    }
    #skills .skill-grid {
        grid-template-columns: 1fr;
    }
    #projects .card-img-top {
        height: 200px;
    }
    .feature-card,
    .testimonial-card,
    .product-card,
    .case-study-card {
        padding: 1.5rem;
    }
    .btn-lg {
        padding: 0.85rem 1.4rem;
        font-size: 0.95rem;
    }
}
