/* Custom Styles for Chen Sibo Portfolio */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;700&family=Nunito:wght@300;400;600;700&display=swap');

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

/* Global Polish */
::selection {
    background: rgba(74, 105, 189, 0.2);
    color: var(--primary-color);
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
    transition: background 0.3s;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

:root {
    --primary-color: #4a69bd;
    --secondary-color: #6a89cc;
    --accent-color: #f8c291;
    --text-color: #2f3542;
    --bg-light: #f1f2f6;
    --dark-bg: #2f3542;
    --card-shadow: 0 10px 20px rgba(0,0,0,0.08);
    --hover-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

body {
    font-family: 'Nunito', 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
    background-color: #ffffff;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Noto Serif SC', serif;
    font-weight: 700;
}

/* Navbar */
.navbar {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 15px 0;
}

.navbar-brand {
    font-family: 'Noto Serif SC', serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

.nav-link {
    color: var(--text-color) !important;
    font-weight: 600;
    margin-left: 20px;
    position: relative;
    transition: color 0.3s;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

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

/* Hero Section */
.hero-section {
    background: #f8f9fa; /* Fallback */
    background: radial-gradient(circle at 50% 50%, #ffffff 0%, #f1f4f9 100%);
    padding: 180px 0 140px;
    position: relative;
    overflow: hidden;
    perspective: 1000px; /* For 3D effects */
}

/* Grid Background */
.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(74, 105, 189, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(74, 105, 189, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
    pointer-events: none;
    z-index: 0;
}

/* Background Shapes */
.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.shape {
    position: absolute;
    filter: blur(80px);
    opacity: 0.6;
    animation: floatShape 20s infinite alternate ease-in-out;
    border-radius: 50%;
}

.shape-1 {
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: linear-gradient(120deg, #a1c4fd 0%, #c2e9fb 100%);
    animation-duration: 25s;
}

.shape-2 {
    bottom: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: linear-gradient(120deg, #fbc2eb 0%, #a6c1ee 100%);
    animation-duration: 30s;
    animation-delay: -5s;
}

.shape-3 {
    top: 40%;
    left: 40%;
    width: 300px;
    height: 300px;
    background: linear-gradient(120deg, #84fab0 0%, #8fd3f4 100%);
    opacity: 0.4;
    animation-duration: 20s;
    animation-delay: -10s;
}

@keyframes floatShape {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0, 0) scale(1); }
}

/* Floating Icons */
.floating-icon {
    position: absolute;
    color: var(--primary-color);
    opacity: 0.15;
    z-index: 1;
    pointer-events: none;
    animation: floatIcon 6s ease-in-out infinite;
}

.floating-icon.i-1 { top: 15%; left: 10%; font-size: 3rem; animation-delay: 0s; }
.floating-icon.i-2 { top: 25%; right: 15%; font-size: 4rem; animation-delay: 1s; }
.floating-icon.i-3 { bottom: 20%; left: 15%; font-size: 2.5rem; animation-delay: 2s; }
.floating-icon.i-4 { bottom: 30%; right: 10%; font-size: 3.5rem; animation-delay: 3s; }
.floating-icon.i-5 { top: 10%; left: 50%; font-size: 2rem; animation-delay: 1.5s; opacity: 0.1; }

@keyframes floatIcon {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* Typing Effect Cursor */
.typing-cursor {
    display: inline-block;
    width: 3px;
    height: 1.2em;
    background-color: var(--primary-color);
    margin-left: 5px;
    vertical-align: middle;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Scroll Down Indicator */
.scroll-down-btn {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    text-align: center;
    color: var(--text-color);
    font-size: 2rem;
    opacity: 0.6;
    transition: all 0.3s;
    animation: bounce 2s infinite;
    z-index: 5;
    cursor: pointer;
}

.scroll-down-btn:hover {
    opacity: 1;
    color: var(--primary-color);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Hero Content */
.hero-content-wrapper {
    /* Optional: Glassmorphism background behind text for readability */
    /* background: rgba(255, 255, 255, 0.3); */
    /* backdrop-filter: blur(10px); */
    /* border: 1px solid rgba(255, 255, 255, 0.5); */
    display: inline-block; /* Center it nicely */
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 24px;
    color: var(--dark-bg);
    letter-spacing: -1.5px;
    line-height: 1.1;
}

.text-gradient {
    background: linear-gradient(120deg, #2f3542, #4a69bd, #6a89cc);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientText 6s ease infinite;
    text-shadow: none;
}

@keyframes gradientText {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #636e72;
    margin-bottom: 40px;
    font-weight: 300;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Animations */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }

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

.btn-custom {
    background: linear-gradient(135deg, #4a69bd 0%, #3c5aa6 100%);
    color: white;
    padding: 16px 42px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: none;
    box-shadow: 0 10px 25px rgba(74, 105, 189, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-custom::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 60%);
    transform: scale(0);
    opacity: 0;
    transition: transform 0.6s ease, opacity 0.6s ease;
}

.btn-custom:hover::after {
    transform: scale(1);
    opacity: 1;
}

.btn-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(74, 105, 189, 0.45);
    color: white;
}

/* Section Titles */
.section-title {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.2rem;
    color: var(--dark-bg);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* Project Cards */
.project-card {
    border: none;
    border-radius: 20px;
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12) !important;
}

.project-img-container {
    height: 240px;
    overflow: hidden;
    position: relative;
}

.project-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.project-card:hover .project-img-container img {
    transform: scale(1.08);
}

.card-body {
    padding: 28px;
}

.card-title {
    font-size: 1.3rem;
    margin-bottom: 12px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.badge-custom {
    background-color: rgba(74, 105, 189, 0.1);
    color: var(--primary-color);
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
}

/* About Section */
.about-section {
    background-color: #fff;
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.about-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(#4a69bd 1.5px, transparent 1.5px);
    background-size: 40px 40px;
    opacity: 0.05;
    pointer-events: none;
}

.founder-signature {
    font-family: 'Ma Shan Zheng', 'STXingkai', 'KaiTi', 'Brush Script MT', 'Noto Serif SC', serif;
    font-size: 2rem;
    color: var(--primary-color);
    margin-top: 1.5rem;
}

.stat-card {
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.02);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #4a69bd, #6a89cc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 0.5rem;
}

/* Core Value Card (New) */
.value-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.04);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    align-items: flex-start;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    border-color: rgba(74, 105, 189, 0.2);
}

.value-card i {
    transition: transform 0.3s ease;
}

.value-card:hover i {
    transform: scale(1.2) rotate(5deg);
}

.stat-label {
    font-size: 0.85rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.team-avatar-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.team-card {
    transition: all 0.3s;
    border: 1px solid rgba(0,0,0,0.03);
}

.team-card:hover {
    background: #f8f9fa !important;
    transform: translateY(-3px);
}

.skill-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(74, 105, 189, 0.08);
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 600;
    margin: 0 6px 8px 0;
}

.skill-badge {
    padding: 8px 15px;
    margin: 0 5px 10px 0;
    border-radius: 8px;
    font-size: 0.9rem;
    display: inline-block;
    background-color: #f1f2f6;
    color: var(--text-color);
    transition: all 0.3s;
}

.skill-badge:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Contact Section */
.contact-section {
    background-color: var(--dark-bg);
    color: white;
    padding: 80px 0;
}

.contact-icon-box {
    padding: 30px;
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    margin-bottom: 20px;
    transition: all 0.3s;
}

.contact-icon-box:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-5px);
}

/* Footer */
footer {
    background-color: #222;
    color: #888;
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
}

/* Modal High End */
.modal-content {
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.3);
}

/* Ensure carousel items take full height for centering */
.carousel-item {
    height: 100%;
}

.carousel-control-prev, .carousel-control-next {
    width: 10%;
    opacity: 0;
    transition: opacity 0.3s;
}

.carousel:hover .carousel-control-prev, 
.carousel:hover .carousel-control-next {
    opacity: 1;
}

.letter-spacing-1 {
    letter-spacing: 1px;
}

.leading-relaxed {
    line-height: 1.8;
}

/* Material Preview Cards */
.pdf-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 2.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
}

/* Soft Copyright Cards */
.copyright-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    text-align: center;
}

.copyright-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.cert-stack-container {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    perspective: 1000px;
}

.cert-stack {
    position: relative;
    width: 140px;
    height: 198px; /* Approx A4 Ratio */
    cursor: pointer;
}

.cert-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-radius: 6px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
    transform-origin: center bottom;
}

.cert-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cert-item.pdf-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    color: #dc3545;
    font-size: 3rem;
    flex-direction: column;
}

.cert-item.empty-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    color: #adb5bd;
    font-size: 2rem;
    border: 2px dashed #dee2e6;
}

/* Stack Visual Logic */
.cert-stack .cert-item:nth-child(1) { z-index: 3; transform: rotate(-2deg); }
.cert-stack .cert-item:nth-child(2) { z-index: 2; transform: rotate(3deg) translate(2px, -2px); opacity: 0.95; }
.cert-stack .cert-item:nth-child(3) { z-index: 1; transform: rotate(-4deg) translate(-2px, -4px); opacity: 0.9; }

/* Stack Hover Effects */
.cert-stack:hover .cert-item:nth-child(1) { transform: rotate(-12deg) translateX(-40px) translateY(10px); }
.cert-stack:hover .cert-item:nth-child(2) { transform: rotate(0deg) scale(1.15); z-index: 10; box-shadow: 0 15px 30px rgba(0,0,0,0.15); }
.cert-stack:hover .cert-item:nth-child(3) { transform: rotate(12deg) translateX(40px) translateY(10px); }

/* Single Item Special Case */
.cert-stack.single-item .cert-item { transform: rotate(0); }
.cert-stack.single-item:hover .cert-item { transform: scale(1.08); box-shadow: 0 10px 25px rgba(0,0,0,0.15); }

.copyright-info h5 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.copyright-meta {
    font-size: 0.85rem;
    color: #888;
}

/* Status Badge Position Fix */
.copyright-status-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 5;
    pointer-events: none; /* Let clicks pass through */
}

/* Ensure it moves with the card during scroll/hover */
.copyright-card {
    position: relative; /* Anchor for absolute badge */
    /* ... existing styles ... */
}

/* Scrolling Container (Snap-Scroll) */
.scrolling-wrapper-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.scrolling-wrapper {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    /* scroll-behavior: smooth; Removed to fix JS auto-scroll stuttering */
    gap: 24px;
    padding: 10px 5px 25px 5px; /* Bottom padding for shadows */
    cursor: grab;
    /* touch-action: pan-x; Removed to allow browser to handle vertical scrolling freely */
    overscroll-behavior-x: contain;
    user-select: none;
}

.scrolling-wrapper::-webkit-scrollbar {
    display: none; /* Hide scrollbar */
}

.scrolling-wrapper:active {
    cursor: grabbing;
}

.scrolling-wrapper.dragging {
    cursor: grabbing;
}

.scrolling-card {
    flex: 0 0 auto;
    width: 320px; /* Fixed width for consistent scrolling */
}

@media (min-width: 992px) {
    .scrolling-card {
        width: 360px;
    }
}

/* Scroll Navigation Buttons */
.scroll-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    color: var(--primary-color);
    opacity: 0;
    pointer-events: none;
}

.scrolling-wrapper-container:hover .scroll-nav-btn {
    opacity: 1;
    pointer-events: auto;
}

@media (hover: none) {
    .scroll-nav-btn {
        opacity: 1;
        pointer-events: auto;
    }
}

.scroll-nav-btn:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.scroll-nav-btn.prev { left: 10px; }
.scroll-nav-btn.next { right: 10px; }

/* Browser Frame (Mac Style) */
.browser-frame {
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    overflow: hidden;
    position: relative;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.05);
}

.browser-header {
    height: 24px;
    background: #f1f3f5;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    padding-left: 10px;
    gap: 6px;
}

.browser-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.browser-dot.red { background: #ff5f56; }
.browser-dot.yellow { background: #ffbd2e; }
.browser-dot.green { background: #27c93f; }

/* Mobile Frame (iPhone Style) */
.mobile-frame {
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    overflow: hidden;
    position: relative;
    border: 6px solid #333;
    background: #000;
}
.mobile-frame img {
    border-radius: 10px;
}

/* High-End Project Showcase */
.showcase-header {
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%); /* Clean Light Gray/White Gradient */
    position: relative;
    padding: 2.5rem;
    overflow: hidden;
    height: 240px; /* Fixed height for uniformity */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Subtle variety but keep it professional */
.scrolling-card:nth-child(2n) .showcase-header { background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%); }
.scrolling-card:nth-child(3n) .showcase-header { background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%); }
.scrolling-card:nth-child(4n) .showcase-header { background: linear-gradient(to top, #accbee 0%, #e7f0fd 100%); }

.project-card {
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
    border-radius: 20px; /* More rounded */
    background: #fff;
    overflow: hidden;
}
.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.12) !important;
}

/* Ensure browser frame scales nicely inside fixed header */
.browser-frame {
    width: 100%;
    max-width: 100%;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2); /* Deeper shadow for pop */
    transition: transform 0.4s ease;
}

.project-card:hover .browser-frame {
    transform: scale(1.02) translateY(-2px);
}

.mobile-frame {
    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
    transition: transform 0.4s ease;
}

.project-card:hover .mobile-frame {
    transform: scale(1.05) translateY(-5px);
}

/* Project Overlay Button */
.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.2); /* Lighter overlay */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(3px);
}
.project-card:hover .project-overlay {
    opacity: 1;
}

/* Button inside overlay */
.project-overlay .btn {
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.project-card:hover .project-overlay .btn {
    transform: translateY(0);
}

/* View Toggle */
.view-toggle {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 4px 8px;
    display: flex;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 10;
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

.project-card:hover .view-toggle {
    opacity: 1;
    transform: translateY(0);
}

.view-toggle i {
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: all 0.2s;
    color: #999;
}

.view-toggle i:hover {
    color: var(--primary-color);
    background: #f0f0f0;
}

.view-toggle i.active {
    color: #fff;
    background: var(--primary-color);
}

.project-gallery-badge {
     position: absolute;
     top: 14px;
     right: 14px;
     z-index: 9;
     padding: 8px 12px;
     border-radius: 999px;
     font-weight: 800;
     letter-spacing: 0.5px;
     box-shadow: 0 10px 25px rgba(0,0,0,0.12);
     backdrop-filter: blur(8px);
     -webkit-backdrop-filter: blur(8px);
 }
 
.project-tagline {
     font-weight: 700;
     opacity: 0.85;
 }

.carousel-counter {
     position: absolute;
     top: 18px;
     left: 18px;
     z-index: 5;
     padding: 8px 12px;
     border-radius: 999px;
     background: rgba(255,255,255,0.65);
     color: #111;
     font-weight: 800;
     box-shadow: 0 10px 25px rgba(0,0,0,0.12);
     backdrop-filter: blur(10px);
     -webkit-backdrop-filter: blur(10px);
 }

.frosted-caption {
     background: rgba(255, 255, 255, 0.55);
     border: 1px solid rgba(255,255,255,0.45);
     backdrop-filter: blur(12px);
     -webkit-backdrop-filter: blur(12px);
     padding: 12px 16px;
 }

/* Custom Pills and Dots */
.badge-custom-pill {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #555;
    background: transparent;
    padding: 4px 0;
    border-radius: 0;
    border: none;
    border-bottom: 2px solid var(--primary-color);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    position: relative;
}
/* Pulse effect for status */
.status-dot::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    border: 1px solid currentColor;
    opacity: 0.3;
}
.status-dot.status-success { background-color: #27c93f; color: #27c93f; }
.status-dot.status-primary { background-color: #4facfe; color: #4facfe; }
.status-dot.status-info { background-color: #a8edea; color: #a8edea; }
.status-dot.status-warning { background-color: #ffbd2e; color: #ffbd2e; }

/* Trust Badges Removed */

/* Mobile Optimizations */
@media (max-width: 768px) {
    /* Enhanced Hero Background */
    .hero-section {
        background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%); /* Clean, bright gradient */
    }
    
    .hero-section::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -50%;
        width: 100%;
        height: 100%;
        background: radial-gradient(circle, rgba(74, 105, 189, 0.08) 0%, transparent 70%);
        z-index: 0;
        pointer-events: none;
    }

    /* Make Hero Title bolder and larger on mobile */
    .hero-title {
        font-size: 2.6rem;
        font-weight: 800;
        margin-bottom: 1rem;
        background: linear-gradient(45deg, #2f3542, #4a69bd);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        padding: 0 10px;
    }

    /* Adjust Floating Icons visibility */
    .floating-icon {
        opacity: 0.12; 
    }
    .floating-icon.i-1 { top: 10%; left: 5%; font-size: 2.5rem; }
    .floating-icon.i-2 { top: 15%; right: 5%; font-size: 3rem; }
    
    /* Enhance Navbar for Mobile */
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 20px;
        border-radius: 16px;
        box-shadow: 0 20px 60px rgba(0,0,0,0.15);
        margin-top: 15px;
        border: 1px solid rgba(255, 255, 255, 0.5);
    }
    
    .nav-link {
        margin-left: 0;
        padding: 14px 10px;
        border-bottom: 1px solid rgba(0,0,0,0.03);
        font-size: 1.05rem;
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }

    /* Hero Content - Clean & Airy (No heavy card) */
    .hero-content-wrapper {
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
        margin-top: -20px;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
    
    /* Remove the shine effect */
    .hero-content-wrapper::before {
        display: none;
    }

    /* Typing Text Enhancement */
    #typing-text {
        font-weight: 700;
        color: #4a69bd;
        text-shadow: 0 2px 10px rgba(74, 105, 189, 0.15);
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 2rem;
        line-height: 1.6;
    }

    /* Better Grid Visibility on Mobile */
    .hero-grid {
        opacity: 0.5;
        mask-image: radial-gradient(circle at center, black 65%, transparent 100%);
        -webkit-mask-image: radial-gradient(circle at center, black 65%, transparent 100%);
        background-size: 30px 30px;
    }

    /* Adjust Floating Icons to be closer and more visible */
    .floating-icon { opacity: 0.15; }
    .floating-icon.i-1 { top: 8%; left: 8%; font-size: 2.2rem; }
    .floating-icon.i-2 { top: 12%; right: 8%; font-size: 2.8rem; }
    .floating-icon.i-3 { bottom: 18%; left: 10%; font-size: 2rem; }
    .floating-icon.i-4 { bottom: 25%; right: 10%; font-size: 2.4rem; }

    /* Mobile Button Enhancement */
    .btn-custom {
        width: 100%;
        padding: 16px 0;
        font-size: 1.15rem;
        letter-spacing: 1px;
        box-shadow: 0 12px 30px rgba(74, 105, 189, 0.35);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Enhance Project Cards on Mobile */
    .project-card {
        box-shadow: 0 8px 20px rgba(0,0,0,0.06);
        border: 1px solid rgba(0,0,0,0.02);
    }
    
    /* Better spacing for About section */
    .about-section {
        padding: 80px 0 60px; /* Increase top padding to blend with fade */
    }
    
    /* Adjust Section Titles */
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    /* Add subtle pattern to body mobile */
    body {
        background-image: radial-gradient(#4a69bd 0.5px, transparent 0.5px);
        background-size: 20px 20px;
        background-color: #fff; 
    }
}
