/* Base font settings - similar to Facebook's typography */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #1c1e21;
}

.hover-up {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 12px;
    overflow: hidden;
}

.hover-up:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(44, 103, 242, 0.15) !important;
}

/* If you choose to hide images entirely, we give the card a nice top-border */
.card.h-100 {
    border-top: 4px solid #2c67f2 !important; /* Your Primary Blue */
    transition: all 0.3s ease;
}

.card:hover {
    border-top-width: 8px !important; /* Thickens on hover for "Excitement" */
    background: #f8faff;
}

/* Limit title height for symmetry */
.card-title {
    min-height: 3rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-post-full-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
}

.blog-post-full-content p {
    line-height: 1.8;
    color: #334155;
}

/* Modal sizing for better reading */
.modal-lg {
    max-width: 800px;
}

#modal-content-area h2 {
    color: #2c67f2; /* Your primary blue */
}

/* Sidebar 
.sidebar {
    min-height: 100vh;
    position: relative;
    box-shadow: inset -1px 0 0 rgba(15, 23, 42, 0.08);
    background: linear-gradient(
        180deg,
        #ffffff 0%,
        #dedede 100%
    );
    overflow: hidden;
}
*/


/* Smooth gradient movement */
@keyframes sidebarFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.sidebar {
    min-height: 100vh;
    position: relative;
    /* We make the sidebar background slightly transparent 
       so the animation underneath can be seen clearly */
    background: rgba(255, 255, 255, 0.9); 
    overflow: hidden;
    z-index: 1; /* Establishes a stacking context */
}

.sidebar::before {
    content: "";
    position: absolute;
    /* Use 'inset' to ensure it covers the area */
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    
    /* Increased opacity to 0.4 so you can actually see it */
    opacity: 0.4; 
    
    /* Using a vibrant gradient */
    background: linear-gradient(
        135deg, 
        #87CEEB 0%, 
        #2c67f2 40%, 
        #62cff4 70%, 
        #a29bfe 100%
    );
    background-size: 50% 50%;
    
    /* Reduced blur slightly so the color is more concentrated */
    filter: blur(50px); 
    
    /* Move it behind the sidebar content */
    z-index: -1; 
    
    animation: excited-swirl 10s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes excited-swirl {
  0% {
    transform: rotate(0deg) scale(1);
    background-position: 0% 50%;
  }
  50% {
    transform: rotate(10deg) scale(1.2);
    background-position: 100% 50%;
  }
  100% {
    transform: rotate(-10deg) scale(1.1);
    background-position: 50% 100%;
  }
}

@keyframes swirl-animation {
  0% {
    /* Start: Tilted slightly left, normal size, blue color */
    transform: rotate(-15deg) scale(1);
    background-position: 0% 50%;
  }
  100% {
    /* End: Tilted slightly right, zoomed in (breathing), light blue color */
    transform: rotate(15deg) scale(1.15);
    background-position: 100% 50%;
  }
}

@keyframes sidebarShine {
    0% {
        transform: translateX(-30%);
        opacity: 0;
    }
    40% {
        opacity: 0.15;
    }
    60% {
        opacity: 0.15;
    }
    100% {
        transform: translateX(30%);
        opacity: 0;
    }
}

.sidebar > * {
    position: relative;
    z-index: 1;
}

.brand-header {
    padding: 2rem 1.5rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
    margin-bottom: 2rem;
}

.brand-logo {
    width: 60px;
    height: 60px;
    margin-bottom: 12px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.brand-title {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #ffffff;
    margin: 0;
}


.brand-header:hover .brand-logo {
    transform: rotate(-8deg) scale(1.05);
}


.profile-info {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    padding-left: 1.5rem;
}

.logo {
    width: 40px;
}

@keyframes float {
    0%   { transform: translateY(0); }
    50%  { transform: translateY(-6px); }
    100% { transform: translateY(0); }
}

.profile-image {
    top: 20px;
    width: 180px;
    height: 180px;
    margin: 0 auto;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    padding: 4px;
    background: #001f3f; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    
    /* 3D Settings */
    perspective: 1000px;
    transform-style: preserve-3d;
    
    /* The Looping Animation */
    animation: photoRefresh 6s infinite ease-in-out;
}

#profileImg {
    /* Make the original image invisible but keep its space */
    color: transparent;
    content: ""; 
    background-image: url('images/profile.webp');
    background-size: cover;
    animation: bgSwap 6s infinite;
}

@keyframes bgSwap {
    0%, 45% { background-image: url('images/profile.webp'); }
    55%, 100% { background-image: url('images/profile2.webp'); }
}

.profile-image img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    backface-visibility: hidden; /* This hides the image when it's facing away */
}

/* Position the second image on the "back" of the coin */
.profile-image .back-photo {
    transform: rotateY(180deg);
}

/* --- THE SPIN LOGIC --- */
@keyframes autoSpin {
    0%, 40% {
        transform: rotateY(0deg); /* Show Profile 1 for ~2.4s */
    }
    50%, 90% {
        transform: rotateY(180deg); /* Spin and show Profile 2 for ~2.4s */
    }
    100% {
        transform: rotateY(360deg); /* Spin back to start */
    }
}

@keyframes photoRefresh {
    /* 0% to 40%: Show Profile 1 clearly */
    0%, 40% {
        transform: rotateY(0deg);
        content: url('../images/profile.webp');
    }
    
    /* 45%: Middle of the first spin - swap the image here */
    45% {
        transform: rotateY(90deg);
        content: url('../images/profile.webp');
    }
    
    /* 50% to 90%: Show Profile 2 clearly */
    50%, 90% {
        transform: rotateY(180deg);
        content: url('../images/profile2.webp');
    }
    
    /* 95%: Middle of the return spin - swap back */
    95% {
        transform: rotateY(270deg);
        content: url('../images/profile2.webp');
    }
    
    /* 100%: Back to start */
    100% {
        transform: rotateY(360deg);
        content: url('../images/profile.webp');
    }
}

/* --- OPTIONAL: Keep the Glass Sweep moving on top --- */
.profile-image::after {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent 30%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 70%
    );
    transform: skewX(-25deg);
    z-index: 10;
    pointer-events: none;
    animation: glassSweep 3s infinite;
}

@keyframes glassSweep {
    0% { left: -150%; }
    100% { left: 150%; }
}

.profile-tagline {
    top: 20px; /* optical baseline correction */
    margin-top: 3.5rem;
    text-align: center;
    font-size: 0.9rem;
    color: #ffffff;
    line-height: 1.4;
}

/* Section titles - similar to Facebook's heading style */
.section-title, .section-header h2 {
    color: #0d6efd;
    border-bottom: 2px solid #0d6efd;
    display: inline-block;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
    font-weight: 600;
}

/* Main content text - Facebook-like readability */
h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1c1e21;
}

p {
    font-size: 1rem;
    color: #606770;
    margin-bottom: 1rem;
}

/* Animation for the blue graph line */
#graph-line-animated {
    stroke-dasharray: 150;
    stroke-dashoffset: 150;
    animation: draw-graph-blue 1.2s ease-out forwards;
}

@keyframes draw-graph-blue {
    to { stroke-dashoffset: 0; }
}

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

#strategy-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.08);
}

#strategy-card:hover {
    border-color: #2c67f2 !important;
    box-shadow: 0 10px 30px rgba(44, 103, 242, 0.1);
    transform: translateY(-5px);
}

/* Service cards - clean, modern look */
.service-card {
    text-align: center;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1.5rem;
    cursor: pointer;
    transition: 
        background-color 0.3s ease,
        box-shadow 0.3s ease,
        color 0.3s ease;
    
    /* ðŸ‘‡ Ensure consistent sizing */
    min-height: 200px; /* Fixed minimum height for consistency */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    
    /* ðŸ‘‡ Reserve space so hover won't move layout */
    margin-top: 5px;
    will-change: box-shadow, background-color, color;
}

.service-card:hover {
    background-color: #0d6efd;
    color: white; /* Base text color turns white */
    
    /* ðŸ‘‡ visual lift without breaking grid */
    margin-top: 5px;
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.35);
}

/* Ensure ALL text elements inside the card turn white on hover */
.service-card:hover * {
    color: white !important;
}

.service-icon {
    font-size: 3rem;
    color: #0d6efd;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.service-card:hover .service-icon { 
    color: #fff; 
}

/* Ensure consistent spacing between cards */
.service-card h3 {
    margin: 0.5rem 0 0.75rem 0;
    font-size: 1.25rem;
}

.service-card p {
    margin: 0;
    font-size: 0.875rem;
    color: #495057;
}

/* Testimonials section */
.testimonials-section {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.testimonial-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-top: 1rem;
}

.testimonial-author img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 1rem;
}

.testimonial-author h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.testimonial-author p {
    font-size: 0.875rem;
    color: #606770;
    margin: 0;
}

.testimonial-card.hidden {
    display: none;
}

.show-more-btn {
    background: #0d6efd;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Footer */
.footer {
    background: #f8f9fa;
    padding: 1.5rem;
    text-align: center;
    margin-top: 3rem;
    font-size: 0.875rem;
    color: #606770;
}

/* Navigation */
.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: #1c1e21;
}

.nav-link:hover {
    color: #0d6efd;
}

/* Resume-specific typography - LinkedIn-like style */
.resume-page {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

/* Professional Summary section */
.professional-summary {
    font-size: 15px;
    color: #666;
    margin-bottom: 1.5rem;
}

/* Responsive Typography */
.portfolio-title {
    font-size: calc(1.8rem + 1.5vw); /* Dynamically scales font */
    line-height: 1.2;
}

.portfolio-subtext {
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 500px; /* Prevents text from stretching too wide on desktop */
    line-height: 1.5;
}

/* Mobile Specific Tweaks */
@media (max-width: 768px) {
    .portfolio-hero {
        padding-top: 60px !important; /* Replaces the &nbsp; tags */
        padding-bottom: 40px !important;
    }
    
    .portfolio-title {
        font-size: 2.2rem; /* Fixed size for better control on small phones */
        letter-spacing: -0.5px;
    }
}

/* Section headers */
.section-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #0d6efd;
    border-bottom: 2px solid #0d6efd;
    display: inline-block;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

/* Card content */
.card {
    margin-bottom: 1.5rem;
}

.card-header {
    background-color: #0d6efd;
    color: white;
    font-size: 1.1rem;
    padding: 0.75rem 1.25rem;
    border-top-left-radius: 0.375rem;
    border-top-right-radius: 0.375rem;
}

.card-body {
    padding: 1.25rem;
}

/* Timeline items */
.timeline-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.timeline-item:last-child {
    border-bottom: none;
}

.timeline-item .text-muted {
    font-size: 0.85rem;
    color: #6c757d;
}

.timeline-item h5 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: #212529;
}

.timeline-item p {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    color: #495057;
}

.timeline-item small {
    font-size: 0.85rem;
    color: #6c757d;
}

/* Skills section */
.skills-section h5 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #212529;
}

.skills-section p {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    color: #495057;
}

/* Expertise summary */
.expertise-summary h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    color: #212529;
}

.expertise-summary p {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    color: #495057;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .resume-page {
        font-size: 13px;
    }
    
    .section-title {
        font-size: 1.1rem;
    }
    
    .card-header {
        font-size: 1rem;
        padding: 0.5rem 1rem;
    }
}

/* Pop-in Animation */
@keyframes teamPop {
    0% { transform: scale(0); opacity: 0; }
    80% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.team-pop-item {
    opacity: 0;
    animation: teamPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Casual Card Styling */
.team-card-casual {
    background: #fff;
    padding: 1.5rem;
    border-radius: 24px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.03);
    height: 100%;
}

.team-card-casual:hover {
    transform: translateY(-8px) rotate(1deg); /* Slight friendly tilt on hover */
    box-shadow: 0 15px 35px rgba(0,0,0,0.07);
    border-color: rgba(0,0,0,0.1);
}

/* Premium Card Styling */
.team-card-premium {
    perspective: 1000px;
    height: 100%;
}

.card-inner {
    background: #ffffff;
    padding: 2rem 1.5rem;
    border-radius: 28px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    position: relative;
    overflow: hidden;
}

.card-inner:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-color: var(--bs-primary);
}

/* Background Glow Effect on Hover */
.card-inner::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99,102,241,0.03) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.card-inner:hover::after {
    opacity: 1;
}

/* Skill Badges */
.badge-skill {
    background: #f1f5f9;
    color: #475569;
    font-size: 0.65rem;
    padding: 3px 10px;
    border-radius: 100px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Updated Gender Tag */
.gender-tag {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 26px;
    height: 26px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 2;
}

/* Blob Avatar Style */
.avatar-blob {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; /* Irregular "blob" shape */
    position: relative;
    transition: border-radius 0.3s ease;
}

.team-card-casual:hover .avatar-blob {
    border-radius: 50%; /* Smooths out to a circle on hover */
}

.avatar-initial {
    font-size: 1.8rem;
    font-weight: 800;
}

/* Gender Badges */
.gender-icon-tag {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 28px;
    height: 28px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.male-badge { color: #0ea5e9; }
.female-badge { color: #f43f5e; }
        
        /* Add this to your style.css or in a style tag */
        .navbar.sticky-top {
            position: sticky;
            top: 0;
            z-index: 1000;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            margin-bottom: 0;
        }
        
        /* Hide sidebar on mobile */
        @media (max-width: 991.98px) {
            .sidebar {
                display: none;
            }
            
            .main-content {
                margin-left: 0;
                padding: 1rem;
            }
        }
        
        /* Mobile brand title */
.navbar-brand-mobile {
    display: none;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: #0f172a;
    background: linear-gradient(90deg, #0d6efd, #4f46e5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Show only on mobile */
@media (max-width: 991.98px) {
    .navbar .container-fluid {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
}

/* Mobile brand container */
.mobile-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0;
}

/* Logo */
.mobile-brand-logo {
    width: 28px;
    height: auto;
    position: relative;
    top: 1px; /* optical alignment */
}

/* Title */
.mobile-brand-title {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: #0f172a;
    line-height: 1;
}

/* Optional gradient text */
.mobile-brand-title {
    background: linear-gradient(90deg, #0d6efd, #4f46e5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

        
        /* Ensure content doesn't get hidden behind fixed elements */
        body {
            padding-top: 0;
            margin: 0;
        }
        
        /* Smooth scrolling */
        html {
            scroll-behavior: smooth;
        }
        
        /* Adjust sidebar padding for better spacing */
        .sidebar {
            padding: 1.5rem;
            background: white;
        }
        
        .sidebar.sticky-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden; /* ✅ no scrollbar */
}
        
        /* Mobile menu toggle button */
        .mobile-menu-toggle {
            display: none;
            position: fixed;
            top: 10px;
            left: 10px;
            z-index: 1060;
            background: #0d6efd;
            color: white;
            border: none;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.2);
            padding: 0;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        @media (max-width: 991.98px) {
            .mobile-menu-toggle {
                display: block;
            }
        }
        
        /* Make sure sidebar doesn't overlap with main content on desktop */
        @media (min-width: 992px) {
            .main-content {
                padding-left: 2rem;
            }
        }
/* ============================= */
/* PREMIUM NAVBAR */
/* ============================= */

.navbar.navbar-premium {
    --bg-opacity: 0.85;
    --blur: 8px;

    background: linear-gradient(
        120deg,
        rgba(248, 249, 250, var(--bg-opacity)),
        rgba(233, 240, 255, var(--bg-opacity)),
        rgba(248, 249, 250, var(--bg-opacity))
    );
    background-size: 300% 300%;
    animation: navbarWave 14s ease infinite;

    backdrop-filter: blur(var(--blur));
    transition:
        background 0.4s ease,
        box-shadow 0.4s ease,
        backdrop-filter 0.4s ease;

    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

/* SCROLLED STATE */
.navbar.navbar-premium.scrolled {
    --bg-opacity: 0.97;
    --blur: 12px;

 animation-duration: 22s;
    background: linear-gradient(
        120deg,
        rgba(13, 110, 253, 0.12),
        rgba(0, 198, 255, 0.18),
        rgba(248, 249, 250, 0.95)
    );

    box-shadow: 0 12px 32px rgba(0,0,0,0.14);
}

/* Background animation */
@keyframes navbarWave {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ============================= */
/* NAV LINKS */
/* ============================= */

.navbar-nav .nav-link {
    position: relative;
    color: #1c1e21;
    font-weight: 500;
    padding: 0.75rem 1rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #0d6efd;
    transform: translateY(-1px);
}

/* Underline animation (LEFT → RIGHT) */
.navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 6px;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #0d6efd, #00c6ff);
    border-radius: 3px;
    transition: width 0.35s ease;
}

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

/* Active state */
.navbar-nav .nav-link.active {
    color: #0d6efd;
    font-weight: 600;
}

.navbar-nav .nav-link.active::after {
    width: 80%;
    background: linear-gradient(90deg, #0d6efd, #6610f2);
}

/* ============================= */
/* MOBILE */
/* ============================= */

@media (max-width: 991.98px) {
    .navbar {
        padding: 0.5rem 1rem;
    }

    .navbar-nav .nav-link {
        padding: 0.75rem 0;
    }

    .navbar-nav .nav-link::after {
        bottom: 2px;
    }

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

.portfolio-screenshot img {
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.portfolio-screenshot img:hover {
    transform: scale(1.03);
}

/* Fullscreen Lightbox Overlay */
.portfolio-lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    padding: 30px; 
    box-sizing: border-box;
    cursor: zoom-out;
    /* Enable vertical scrolling for long screenshots */
    overflow-y: auto; 
    overflow-x: hidden;
}

/* Force image to fill width */
.lightbox-content {
    display: block;
    width: 100% !important;   /* Force full width */
    max-width: 100%;
    height: auto;             /* Let height grow proportionally */
    border-radius: 4px;
    margin: 0 auto;
    animation: slideUp 0.3s ease-out;
}

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

.close-lightbox {
    position: fixed; /* Keep close button fixed while scrolling image */
    top: 15px;
    right: 25px;
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    z-index: 10001;
    cursor: pointer;
    background: rgba(0,0,0,0.5);
    width: 45px;
    height: 45px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
}

/* Lightbox */
/* FULLSCREEN LIGHTBOX */
#lightbox {
    position: fixed;
    inset: 0; /* top:0 right:0 bottom:0 left:0 */
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 9999;
}

/* Visible state */
#lightbox.show {
    opacity: 1;
    pointer-events: auto;
}

/* Image */
#lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    animation: zoomIn 0.35s ease;
}

/* Close button */
#lightboxClose {
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 36px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    line-height: 1;
    opacity: 0.85;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

#lightboxClose:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Zoom animation */
@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Case Study readability improvements */
/* ==============================
   Case Study Documentation Style
   ============================== */

/* Padding from modal edges */
.caseStudyView {
  padding-left: 0.5rem;
  margin: 2rem;
  font-size: 0.92rem;
  line-height: 1.7;
  color: #333;
}

.caseStudyView.case-study-content {
  padding: 2rem 2.5rem;
  margin: 2rem;
  font-size: 0.92rem;
  line-height: 1.7;
  color: #333;
}

/* Main title */
.caseStudyView h3 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Section titles */
.caseStudyView h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

/* Paragraph spacing */
.caseStudyView p {
  margin-bottom: 1rem;
}

/* Lists */
.caseStudyView ul {
  padding-left: 1.25rem;
  margin-bottom: 1.25rem;
}

.caseStudyView li {
  margin-bottom: 0.5rem;
}

/* Back button subtle look */
.caseStudyView .btn-link {
  font-size: 0.9rem;
  padding-left: 0;
  text-decoration: none;
}

/* Mobile spacing */
@media (max-width: 768px) {
  .caseStudyView .case-study-content {
    padding: 1.5rem 1.25rem;
    font-size: 0.9rem;
  }
}


/* Mobile optimization */
@media (max-width: 768px) {
    .caseStudyView {
        padding: 1.5rem 1.25rem;
    }
}

/* Optional subtle divider between sections */
.caseStudyView hr {
    margin: 3rem 0;
    border-top: 1px solid #eee;
}

/* ==============================
   Case Study Documentation Style
   ============================== */

.case-study-doc {
  padding: 2rem 2.5rem;              /* distance from modal border */
  font-size: 0.92rem;                /* slightly smaller than default */
  line-height: 1.7;
  color: #333;
}

/* Headings hierarchy */
.case-study-doc h3 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.case-study-doc h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

/* Paragraph spacing */
.case-study-doc p {
  margin-bottom: 1rem;
}

/* Lists */
.case-study-doc ul {
  padding-left: 1.25rem;
  margin-bottom: 1.25rem;
}

.case-study-doc li {
  margin-bottom: 0.5rem;
}

/* Section separation */
.case-study-doc h4 + p,
.case-study-doc h4 + ul {
  margin-top: 0.5rem;
}

/* Back button subtle */
.caseStudyView .back-to-project {
  padding-left: 0;
  font-size: 0.9rem;
  text-decoration: none;
}

/* Responsive: reduce padding on small screens */
@media (max-width: 768px) {
  .case-study-doc {
    padding: 1.5rem 1.25rem;
    font-size: 0.9rem;
  }
}

/* Section Styling */
#typing-text {
    transition: color 0.3s ease;
    display: inline-block;
    word-break: break-word;
}

.typing-cursor {
    display: none; /* Hidden by default */
    font-weight: bold;
    color: #2c67f2;
    animation: blink 0.8s infinite;
    margin-left: 2px;
}

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

/* Style the badges to react when the card is hovered */
#dev-card:hover .badge {
    background-color: #f0f7ff !important;
    border-color: #2c67f2 !important;
    color: #2c67f2 !important;
    transition: all 0.3s ease;
}

/* Make the card feel interactive */
.expertise-card {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.3s;
    border: 1px solid rgba(0,0,0,0.05);
}

.expertise-card:hover {
    transform: translateY(-5px);
    border-color: #2c67f2; /* Matches your Aurora Blue */
}

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(13, 110, 253, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
}

/* Animation Classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.1s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

.tracking-wider {
    letter-spacing: 2px;
}

#tech-fields-container {
    transition: all 0.3s ease-in-out;
}

/* Service Section Makeover */
.service-card-new {
    background: #ffffff;
    border: 1px solid #f0f4f8;
    border-radius: 20px;
    cursor: pointer;
    pointer-events: auto !important;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-icon-wrapper {
    width: 50px;
    height: 50px;
    background: rgba(13, 110, 253, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #0d6efd;
    transition: all 0.3s ease;
}

.service-card-new:hover {
    transform: translateY(-8px);
    border-color: #0d6efd;
    box-shadow: 0 15px 35px rgba(13, 110, 253, 0.08);
}

.service-card-new:hover .service-icon-wrapper {
    background: #0d6efd;
    color: #ffffff;
    transform: rotate(-10deg);
}

.service-card-new h3 {
    transition: color 0.3s ease;
}

.service-card-new:hover h3 {
    color: #0d6efd;
}

/* Staggered Animation Delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

#lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 9999;
}

/* Image animation */
#lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
    animation: zoomIn 0.3s ease;
}

#lightboxClose {
    position: absolute;
    top: 24px;
    right: 28px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 28px;
    font-weight: 300;
    cursor: pointer;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    transition: background 0.2s ease, transform 0.2s ease;
}

#lightboxClose:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

#lightboxClose:active {
    transform: scale(0.95);
}

#lightbox.show {
    opacity: 1;
    pointer-events: auto;
}


/* Closing state */
#lightbox.closing {
    opacity: 0;
    animation: fadeOut 0.25s ease forwards;
}

#lightbox.closing img {
    animation: zoomOut 0.25s ease forwards;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    to { opacity: 0; }
}

@keyframes zoomIn {
    from { transform: scale(0.95); }
    to { transform: scale(1); }
}

@keyframes zoomOut {
    to { transform: scale(0.95); }
}

/* ==============================
   Floating Back Button (Case Study)
   ============================== */

/* =================================
   Floating Back Button (Modal-safe)
   ================================= */

.modal-content {
  position: relative; /* anchor */
}

/* ================================
   Floating Back Button (Modal-fixed)
   ================================ */

.floating-back-btn {
  position: fixed;
  top: 80px;               /* below modal header */
  left: calc(48% - 560px); /* align to modal left */
  z-index: 1065;

  display: inline-flex;
  align-items: center;
  gap: 0.5rem;

  padding: 0.45rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 500;

  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;

  color: #333;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);

  transition: all 0.25s ease;
}

.floating-back-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

@media (max-width: 1200px) {
  .floating-back-btn {
    left: 1rem;
    top: 70px;
  }
}

/* Contact Page Specific Styles */
.contact-section {
    animation: fadeIn 0.8s ease-in-out;
}

.icon-box {
    width: 50px;
    height: 50px;
    background: #f8f9fa;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0d6efd; /* Bootstrap Primary */
    font-size: 1.2rem;
}

.contact-card {
    border-radius: 20px;
    background: #ffffff;
}

.custom-input {
    border: 1px solid #e9ecef;
    padding: 12px 16px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.custom-input:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
}

.btn-send {
    border-radius: 12px;
    font-weight: 600;
    transition: transform 0.2s ease;
}

.btn-send:hover {
    transform: translateY(-2px);
    background-color: #333;
}

.social-links a {
    font-size: 1.5rem;
    color: #6c757d;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #0d6efd;
}

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

/* Sidebar Bio Styling */
.profile-bio h2 {
    line-height: 1.3;
    color: #333;
}

.x-small {
    font-size: 0.75rem;
}

.status-dot {
    height: 8px;
    width: 8px;
    background-color: #28a745; /* Green */
    border-radius: 50%;
    display: inline-block;
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 5px rgba(40, 167, 69, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(40, 167, 69, 0); }
}

.pulse-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.status-pill {
    background: rgba(40, 167, 69, 0.1);
    color: #fff;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    border: 1px solid rgba(40, 167, 69, 0.2);
    display: flex;
    align-items: center;
    z-index: 2;
}

.inner-dot {
    width: 6px;
    height: 6px;
    background: #28a745;
    color: #fff;
    border-radius: 50%;
    margin-right: 8px;
}

.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(40, 167, 69, 0.4);
    border-radius: 50px;
    z-index: 1;
    animation: ripple 2s infinite;
}

@keyframes ripple {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.4, 1.8); opacity: 0; }
}

.status-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.status-content {
    background: #ffffff;
    color: #1a8a34; /* Success Green */
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    border: 1px solid rgba(40, 167, 69, 0.2);
    display: flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    z-index: 2;
}

.status-dot {
    width: 7px;
    height: 7px;
    background: #28a745;
    border-radius: 50%;
    margin-right: 10px;
    display: inline-block;
}

/* The Animated Pulse Wave */
.pulse-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(40, 167, 69, 0.3);
    border-radius: 50px;
    z-index: -1;
    animation: status-ripple 2s infinite;
}

@keyframes status-ripple {
    0% { transform: scale(0.9); opacity: 0.8; }
    100% { transform: scale(1.2, 1.5); opacity: 0; }
}

/* Hover States */
.status-button:hover .status-content {
    background: #0d6efd;
    color: #fff;
    border-color: #28a745;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.2);
}

.status-button:hover .status-dot {
    background: #fff;
}

.status-button:active {
    transform: scale(0.96);
}

.custom-field {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 12px 15px;
    border-radius: 10px;
}

.custom-field:focus {
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
    border-color: #0d6efd;
}

/* Radio Button Styling */
.btn-check:checked + .btn-outline-primary {
    background-color: #0d6efd;
    color: #fff;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

/* Full Screen Blur Background */
.success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.4s ease-out forwards;
}

.success-card {
    background: white;
    border-radius: 30px;
    max-width: 450px;
    transform: scale(0.8);
    animation: popIn 0.5s cubic-bezier(0.26, 0.53, 0.74, 1.48) forwards;
}

/* The Animated Checkmark */
.checkmark {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: block;
    stroke-width: 3;
    stroke: #28a745;
    stroke-miterlimit: 10;
    margin: 0 auto;
    box-shadow: inset 0px 0px 0px #28a745;
    animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
}

.checkmark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 3;
    stroke-miterlimit: 10;
    stroke: #28a745;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark__check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke { 100% { stroke-dashoffset: 0; } }
@keyframes scale { 0%, 100% { transform: none; } 50% { transform: scale3d(1.1, 1.1, 1); } }
@keyframes fill { 100% { box-shadow: inset 0px 0px 0px 40px rgba(40, 167, 69, 0.1); } }

@keyframes popIn {
    to { transform: scale(1); opacity: 1; }
}

/* Ensure the request section spans the full width of its parent */
.request-section {
    width: 100%;
}

.request-card {
    border-radius: 24px; /* Keeping the rounded corners */
    width: 100%;
    margin: 0;
}

/* Optional: If you want the card to lose its rounded corners on mobile to feel even wider */
@media (max-width: 768px) {
    .request-card {
        border-radius: 0;
        box-shadow: none; /* Cleaner look on mobile */
    }
    .request-section {
        padding-top: 0 !important;
    }
}

/* The Main Container Block */
.project-block {
    background: #ffffff;
    border: 1px solid #edf2f7;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

/* Custom Input Styling inside the block */
.custom-input {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 12px 16px;
    border-radius: 10px;
    transition: all 0.2s ease-in-out;
}

.custom-input:focus {
    background-color: #ffffff;
    border-color: #0d6efd;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
}

/* Service Selector Buttons */
.service-selector .btn-outline-light {
    border-color: #e2e8f0;
    background-color: white;
    border-radius: 10px;
    font-weight: 500;
}

.service-selector .btn-check:checked + .btn-outline-light {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: white !important;
}

/* Heading flair */
.text-primary {
    color: #0d6efd !important;
}

.testimonial-box {
    background: #ffffff;
    border: 1px solid #edf2f7;
    border-radius: 20px;
    transition: all 0.3s ease-in-out;
}

.testimonial-box:hover {
    border-color: #0d6efd;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(13, 110, 253, 0.05) !important;
}

/* Initial state for extra items */
.hidden-item {
    display: none; 
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* When the "show" class is added */
.hidden-item.show {
    display: block !important;
    opacity: 1;
}

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

/* Deliverables Section Custom Styles */
.border-dashed {
    border-style: dashed !important;
}

.x-small {
    font-size: 0.75rem;
}

#deliverables i {
    transition: transform 0.3s ease;
}

#deliverables .col-6:hover i {
    transform: translateY(-5px);
    color: var(--bs-primary);
}

.management-box {
    background: rgba(var(--bs-primary-rgb), 0.03);
}

.service-hidden:not(.d-none) {
    animation: servicePop 0.4s ease forwards;
}

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

#btn-toggle-services {
    transition: all 0.3s ease;
}

#btn-toggle-services:hover {
    background-color: var(--bs-primary);
    color: white;
    transform: translateY(-2px);
}