
/* Font change */
body {
    font-family: 'Roboto', sans-serif;
}

/* Optional: Additional responsive styling for mobile view */
@media (max-width: 900px) {
    .navbar-brand {
        font-size: 1.5rem; /* Increase font size on smaller screens if needed */
        width: 75%; /* Increase the width of the navbar brand */
        text-align: center; /* Center the text */
    }
}

/* Styling nav items */
.navbar-nav .nav-item {
    margin-right: 1.5rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    font-size: 1rem;
    color: #343a40;
    transition: color 0.3s ease;
    position: relative;
}

/* Hover effect with underline animation */
.navbar-nav .nav-link:hover::after, .navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #007bff;
    left: 0;
    bottom: -4px;
    animation: underline 0.4s ease forwards;
}

/* Animation for underline */
@keyframes underline {
    from { width: 0; }
    to { width: 100%; }
}

/* Active link style */
.navbar-nav .nav-link.active {
    color: #007bff;
    font-weight: 700;
}


/* Offcanvas styling */
.offcanvas-body .nav-item {
    margin-bottom: 2rem;
}

.offcanvas-body .nav-item .nav-link {
    font-size: 1.5rem; /* Slightly reduce font size to prevent wrapping */
    text-align: top;
    width: 100%; /* Full width for better alignment */
    padding: 5px 0; /* Consistent padding */
    color: #343a40; /* Ensure color matches the original styling */
}

.offcanvas-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.offcanvas-body .navbar-nav {
    width: 80%; /* Restricting nav width to 80% for better appearance */
}

.navbar-toggler {
    border: none; /* Remove border */
}

/* Custom card visuals*/
.custom-card {
    background-color: #F3F3E0 !important; /* Light background color */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Shadow for depth */
    border-radius: 10px; /* Rounded corners */
    padding: 20px; /* Inner padding */
    margin: 20px; /* Margin to separate from other content */
    transition: transform 0.3s ease; /* Smooth transition */
}

.card-footer a:hover i:hover {
    transform: scale(1.2); /* Lifts the card */
    color:#007bff;
}

.about-content {
    padding: 10px; /* Inner padding */
    margin: 10px; /* Margin to separate from other content */
}

.text-justify{
    text-align: justify;
}


/*light, dark theme button*/
.position-fixed {
    position: fixed !important;
}

.btn-bd-primary {
    --bd-violet-bg: #712cf9;
    --bd-violet-rgb: 112.520718, 44.062154, 249.437846;
    --bd-white-bg:white;
    --bd-btn-hover-color:yellow;
    --bs-btn-font-weight: 600;
    --bs-btn-color: var(--bd-white-bg);
    --bs-btn-bg: var(--bd-violet-bg);
    --bs-btn-border-color: var(--bd-violet-bg);
    --bs-btn-hover-color: var(--bd-white-bg);
    --bs-btn-hover-bg: #6528e0;
    --bs-btn-hover-border-color: #6528e0;
    --bs-btn-focus-shadow-rgb: var(--bd-violet-rgb);
    --bs-btn-active-color: var(bd-btn-hover-color);
    --bs-btn-active-bg: #5a23c8;
    --bs-btn-active-border-color: #5a23c8;
}

.button-color{
    background-color: #7c24e8;
}

.box-marker{
    background-color: #6528e0;
    height: 18px;
    width: 18px;
    display: inline-block;
    padding: 0%;
    margin-right: 5px;
}

/*time line section*/
/* Timeline container */
.timeline {
    position: relative;
    padding: 2rem 0;
    margin: 0 auto;
    max-width: 90%;
}

/* Timeline line */
.timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: #007bff;
    transform: translateX(-50%);
}

/* Timeline header */
.timeline-title {
    text-align: center;
    font-size: 1.75rem;
    font-weight: bold;
    color: #007bff;
    margin: 20px;
    position: relative;
    z-index: 1;
}

/* Timeline item */
.timeline-item {
    position: relative;
    width: 50%;
    padding: 1rem;
    box-sizing: border-box;
    opacity: 0;
    transition: transform 0.6s ease-in-out, opacity 0.6s ease-in-out;
}

.timeline-item.left {
    left: 0;
    text-align: right;
    transform: translateX(-100px);
}

.timeline-item.right {
    left: 50%;
    text-align: left;
    transform: translateX(100px);
}

.timeline-item.show {
    opacity: 1;
    transform: translateX(0);
}

/* Circle on timeline */
.timeline-item::before {
    content: "";
    position: absolute;
    top: 85px;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 15px;
    height: 15px;
    background-color: #007bff;
    border-radius: 50%;
    z-index: 1;
}


.timeline-item.left::before {
    left: 100%; /* Aligns circle on the line for left items */
}

.timeline-item.right::before {
    left: 0; /* Aligns circle on the line for right items */
}

/* Timeline content */
.timeline-content {
    background-color: #CBDCEB;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.timeline-content h4 {
    margin-top: 0;
    color: #0b0c0c;
}

.timeline-content.timeline-content-title p{
    color: #343a40;
}

.timeline-content p {
    margin-bottom: 0;
    color: #6c757d;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .timeline::before {
        left: 20px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 2.5rem;
        margin-bottom: 2rem;
    }
    .timeline-item.left, .timeline-item.right {
        left: 0;
        text-align: left;
        transform: translateX(0);
    }
    .timeline-item.left::before, .timeline-item.right::before {
        position: absolute;
        left: 12.5px;
        transform: translateY(-50%);
    }
    .timeline-content h4 {
        font-size: 120%;
    }
    .timeline-title{
        text-align: left;
    }
}

.skill-card {
    position: relative;
    width: 100%;
    height: 200px; /* Adjust height as needed */
    perspective: 1000px;
    margin: 15px 0; /* Spacing between cards */
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border: 1px solid #007bff;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.6s;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.card-front {
    background-color: #ffffff; /* Front card color */
}

.card-back {
    background-color: #007bff; /* Back card color */
    color: white; /* Back text color */
    transform: rotateY(180deg); /* Initially flip back */
}

.skill-card:hover .card-front {
    transform: rotateY(180deg);
}

.skill-card:hover .card-back {
    transform: rotateY(0deg);
}

/* Optional: Style for lists */
.card-back ul {
    list-style-type: none; /* Remove default list styling */
    padding: 0;
}

.card-back ul li {
    margin: 5px 0; /* Spacing between items */
}

/* ── NEW: Skill Group Cards (pill/tag cloud layout) ─────────────────── */
.skill-group-card {
    background-color: #CBDCEB;          /* matches .timeline-content */
    border-radius: 8px;
    padding: 20px 22px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-top: 4px solid #007bff;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-group-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 123, 255, 0.18);
}

/* AI card gets a purple top accent */
.skill-group-card-ai {
    border-top-color: #6528e0;
    background: linear-gradient(160deg, #e8e4f8 0%, #CBDCEB 60%);
}

.skill-group-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.skill-group-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.skill-group-title {
    font-weight: 700;
    color: #0b0c0c;
    font-size: 1rem;
    margin: 0;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

/* Standard skill pill */
.skill-pill {
    display: inline-block;
    background: rgba(0, 123, 255, 0.1);
    color: #007bff;
    border: 1px solid rgba(0, 123, 255, 0.28);
    padding: 5px 13px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: background 0.2s ease, transform 0.2s ease;
    cursor: default;
}

.skill-pill:hover {
    background: #007bff;
    color: #ffffff;
    transform: translateY(-2px);
}

/* AI skill pill — gradient purple-blue */
.skill-pill-ai {
    background: rgba(101, 40, 224, 0.1);
    color: #6528e0;
    border-color: rgba(101, 40, 224, 0.28);
}

.skill-pill-ai:hover {
    background: linear-gradient(135deg, #6528e0, #1ab2f8);
    color: #ffffff;
    border-color: transparent;
    transform: translateY(-2px);
}


/*Project Section */
.project-card {
    overflow: hidden;
    border-radius: 10px;
}

.project-img {
    object-fit: cover;
    border-radius: 10px 10px 0 0;
}

.view-more-btn {
    transition: background-color 0.3s;
}

/* Hidden content styling */
.extended-info {
    max-height: 0; /* Initially hide the extended info */
    overflow: hidden; /* Hide overflow */
    transition: max-height 0.5s ease; /* Smooth transition for height */
}

.project-type-heading {
    font-size: 1.75rem;
    font-weight: bold;
    color: #007bff;
    margin: 20px;
    position: relative;
    z-index: 1;
}
 /* Contact card styling with transparency */
 .contact-card {
    background: rgba(255, 255, 255, 0); /* Transparent white background */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Slight shadow */
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
  }

  .contact-card:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); /* Slightly stronger shadow on hover */
  }


/* ======================================================
   ENHANCEMENTS — Sept 2026 Sync (Palette-matched)
   ====================================================== */

/* Google Font — Inter (loaded via HTML link tag) */
body {
    font-family: 'Inter', 'Roboto', sans-serif;
}

/* --- AI Tech Tags (About section) --- */
.ai-tag {
    display: inline-block;
    background: linear-gradient(135deg, #6528e0, #1ab2f8);
    color: #ffffff;
    padding: 5px 13px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    margin: 3px 2px;
    letter-spacing: 0.2px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ai-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(101, 40, 224, 0.35);
}

/* --- Stat Badges (About section) --- */
.stat-badge {
    background: #ffffff;
    border-radius: 12px;
    padding: 14px 8px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border-top: 3px solid #1ab2f8;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(26, 178, 248, 0.2);
}

.stat-number {
    font-size: 1.65rem;
    font-weight: 800;
    color: #1ab2f8;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.68rem;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-top: 2px;
}

/* --- Achievements Section --- uses same light bg as rest of site */
.achievements-section {
    background-color: #f8f9fa;
    padding: 60px 0 70px;
    border-top: 4px solid #007bff;
}

.achievement-card {
    background-color: #CBDCEB;   /* matches .timeline-content exactly */
    border: none;
    border-radius: 8px;          /* matches .timeline-content */
    padding: 28px 26px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* same as .timeline-content */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
}

/* Blue top accent bar matching brand colour */
.achievement-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #007bff, #6528e0);
}

.achievement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 123, 255, 0.2);
}

.achievement-badge {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #007bff, #6528e0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 1.6rem;
    box-shadow: 0 4px 14px rgba(0, 123, 255, 0.3);
}

.achievement-tag {
    display: inline-block;
    background: rgba(0, 123, 255, 0.1);
    color: #007bff;
    border: 1px solid rgba(0, 123, 255, 0.25);
    padding: 4px 13px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    margin-top: 12px;
    letter-spacing: 0.3px;
}

/* --- Certifications Section --- matches timeline-content style */
.cert-card {
    background-color: #CBDCEB;   /* same as .timeline-content */
    border-radius: 8px;          /* same as .timeline-content */
    padding: 22px 20px;
    border-left: 4px solid #007bff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* same as .timeline-content */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    position: relative;
}

.cert-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 123, 255, 0.18);
}

.cert-icon {
    font-size: 1.9rem;
    margin-bottom: 10px;
    display: block;
}

.cert-title {
    font-weight: 700;
    color: #0b0c0c;              /* same as .timeline-content h4 */
    font-size: 0.9rem;
    margin-bottom: 5px;
    line-height: 1.5;
}

.cert-issuer {
    color: #6c757d;              /* same as .timeline-content p */
    font-size: 0.84rem;
    margin-bottom: 8px;
}

.cert-date {
    display: inline-block;
    font-size: 0.75rem;
    color: #007bff;
    font-weight: 700;
    background: rgba(0, 123, 255, 0.1);
    padding: 3px 9px;
    border-radius: 8px;
}

/* --- Agentic AI Skill Card — Special Gradient Back --- */
.skill-card-ai {
    background: linear-gradient(135deg, #6528e0, #1ab2f8) !important;
}

/* Special shimmer border on AI card front */
.card-front-ai {
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #6528e0, #1ab2f8) border-box !important;
    border: 2px solid transparent !important;
}

