/* ==========================================================================
   1. GLOBAL RESET & VARIABLE SETUP
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #020403;              /* Deep black background from color palette */
    --card-bg: #111413;              /* Rich dark gray/black tone for elegant look */
    --card-border: rgba(255, 255, 255, 0.05);
    --text-primary: #f0f6fc;
    --text-muted: #8b949e;
    --accent-purple: #8957e5;
    --accent-blue: #58a6ff;
    --accent-green: #3fb950;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem 1.5rem;
}

.container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* ==========================================================================
   2. TOP BANNER SPECIFICATIONS
   ========================================================================== */
.top-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #e6e6e6;
    color: #000000;
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
}

.banner-initials {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
}

.banner-slogan {
    font-family: var(--font-body);
    font-style: italic;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
}

.banner-icon-placeholder {
    display: flex;
    align-items: center;
}

.empty-icon-box {
    width: 20px;
    height: 20px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

/* ==========================================================================
   3. 12-COLUMN MASTER BENTO GRID LAYOUT
   ========================================================================== */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.25rem;
    width: 100%;
}

/* --- UPGRADED ASYMMETRICAL PROFILE LAYOUT --- */
.standard-profile-layout {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between;
    align-items: stretch; /* Stretches left and right content to full height */
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    padding-right: 0 !important; /* Allows image to touch right boundary smoothly */
}

/* Left side layout alignment */
.profile-left-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Pushes top group up, bottom group down */
    height: 100%;
    padding: 0.2rem 0;
    z-index: 2;
    flex-grow: 1;
}

/* --- ADJUSTED NAME POSITIONING (MOVED UPWARDS) --- */
.profile-top-meta {
    display: flex;
    flex-direction: column;
    gap: 0.2rem; /* Gap ko thoda kam kiya taaki PROFILE tag aur naam qareeb aayein */
    margin-top: -5px; /* Halka sa uper shift karne ke liye negative margin */
}

/* Single line layout constraints with refined top padding alignment */
.profile-single-line-name {
    font-size: 1.65rem; 
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap; 
    margin: 0;
    padding: 0;
    letter-spacing: -0.01em;
}

/* Bottom elements arrangement */
.profile-bottom-meta {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: auto;
}

.sub-heading-text {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.age-text-tag {
    font-size: 0.82rem;
    opacity: 0.8;
}
/* --- FIXED ABSOLUTE SNAP (FLUSH RIGHT) --- */
.profile-right-image-zone {
    position: absolute;
    bottom: 0;       
    right: 0;        /* Shifts the image completely to the far right edge */
    width: 60%;
    height: 100%;     
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    pointer-events: none; 
}

/* Perfect alignment adjustment without cropping shoulders */
.profile-split-image-large {
    height: 100%;
    width: auto;
    object-fit: contain; 
    display: block;
    margin-right: -60px; /* Pulls the right boundary tight to the layout grid edge */
    
    /* Blended baseline fade template */
    -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 12%);
    mask-image: linear-gradient(to top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 12%);
}
/* UNIVERSAL CARD SETUP */
.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

.section-tag {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    display: block;
    color: var(--accent-purple);
}

/* --- ROW 1 LAYOUT (Total: 12 Cols) --- */
.profile-card {
    grid-column: span 3;
    align-items: flex-start;
}

/* --- UPDATED PREMIUM IDENTITY CARD STYLING --- */
.identity-card {
    grid-column: span 4;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.8rem;
    position: relative;
}

.identity-header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.identity-card .section-tag {
    color: var(--accent-blue);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Green Live Availability Badge */
.availability-status {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--accent-green);
    background: rgba(63, 185, 80, 0.08);
    padding: 0.25rem 0.55rem;
    border-radius: 20px;
    border: 1px solid rgba(63, 185, 80, 0.15);
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent-green);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(63, 185, 80, 0.7);
    animation: statusPulse 1.6s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes statusPulse {
    to {
        box-shadow: 0 0 0 6px rgba(63, 185, 80, 0);
    }
}

/* Details Box Arrangement */
.identity-main-details {
    margin-top: 0.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.identity-main-details h3 {
    font-size: 1.35rem; /* Reverted back to the original layout size */
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 0.2rem;
}

.location-marker, .email-text {
    font-size: 0.88rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.55rem;
    transition: color 0.2s;
}

.identity-main-details i {
    width: 14px;
    color: var(--text-muted);
}

.email-text:hover {
    color: var(--accent-blue);
}

.email-text:hover i {
    color: var(--accent-blue);
}

/* Footer alignment structure containing social icons & final year tag */
.identity-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end; /* Pushes both elements neatly to the baseline */
    width: 100%;
    margin-top: 0.5rem;
}

/* Premium Social Link Boxes */
.social-links-row {
    display: flex;
    gap: 0.75rem;
}

.social-box {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Brand Specific Glow Effects on Hover */
.linkedin-color:hover {
    color: #0a66c2;
    background: rgba(10, 102, 194, 0.08);
    border-color: rgba(10, 102, 194, 0.3);
    box-shadow: 0 0 12px rgba(10, 102, 194, 0.15);
    transform: translateY(-2px);
}

.github-color:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.instagram-color:hover {
    color: #e1306c;
    background: rgba(225, 48, 108, 0.08);
    border-color: rgba(225, 48, 108, 0.3);
    box-shadow: 0 0 12px rgba(225, 48, 108, 0.15);
    transform: translateY(-2px);
}

/* Custom Styled Right-Bottom Final Year Badge */
.final-year-badge {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-purple);
    background: rgba(137, 87, 229, 0.08);
    padding: 0.35rem 0.7rem;
    border-radius: 8px;
    border: 1px solid rgba(137, 87, 229, 0.15);
    font-family: var(--font-heading);
    letter-spacing: 0.02em;
    height: fit-content;
}

.final-year-badge i {
    font-size: 0.8rem;
}


.bio-card {
    grid-column: span 5;
}

/* --- ROW 2 LAYOUT (Total: 12 Cols - Expanded Right Elements to Prevent Congestion) --- */
.education-card {
    grid-column: span 4;
}
/* --- UPDATED PREMIUM PROJECTS CARD STYLING --- */
.projects-card {
    grid-column: span 4;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 1.2rem; /* Perfect breathing room for header and grid */
    position: relative;
    padding-bottom: 2rem; /* Secure space for the bottom elements */
}

.project-card-header-group {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
}

.projects-card .section-tag {
    color: var(--accent-blue);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Slick Custom Tagline Specification */
.project-tagline-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1.2;
}

.project-counter-tag {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    padding: 0.15rem 0.45rem;
    border-radius: 6px;
}

.projects-visual-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.95rem; /* Enhanced horizontal spacing between columns */
    width: 100%;
}

/* --- PROJECT IMAGE PREVIEW FIX --- */
.project-preview-wrapper-container {
    display: flex;
    flex-direction: column;
    gap: 0.55rem; /* Elegant gap between image and text */
    min-width: 0;
}

.project-preview-wrapper {
    background: #ffffff;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    width: 100%;
    aspect-ratio: 1 / 1; /* Locked crisp square boxes */
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.project-media-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Sophisticated Left-Aligned Titles */
.project-display-title {
    font-size: 0.73rem;
    font-weight: 600; /* Semi-bold look for premium structure */
    color: rgba(255, 255, 255, 0.85); /* Slightly brighter for better contrast */
    text-align: left; /* Shifted to clean left-align */
    margin: 0;
    line-height: 1.3;
    letter-spacing: 0.01em;
    word-wrap: break-word;
    transition: color 0.2s ease;
}

/* Dynamic Dark Glossy Overlay on Hover */
.project-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(17, 20, 19, 0.9);
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-action-link {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s;
}

.project-action-link:hover {
    background: var(--accent-purple);
    border-color: var(--accent-purple);
    transform: scale(1.1);
}

/* Hover Accent Sync for Entire Container */
.project-preview-wrapper-container:hover .project-preview-wrapper {
    transform: translateY(-3px);
}

.project-preview-wrapper-container:hover .project-display-title {
    color: var(--accent-purple); /* Title highlights subtly on card hover */
}

.project-preview-wrapper-container:hover .project-hover-overlay {
    opacity: 1;
    transform: translateY(0);
}
/* Footer row holds the link in normal flow, right-aligned below the grid */
.projects-footer-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.85rem;
}

.project-more-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 6px 16px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
    background: rgba(93, 23, 126, 0.04);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.project-more-link::after {
    content: '\2192';
    font-size: 0.85rem;
    line-height: 1;
    transition: transform 0.25s ease;
}

.project-more-link:hover {
    color: #fff;
    background: rgba(137, 87, 229, 0.15);
    border-color: rgba(137, 87, 229, 0.4);
    transform: translateY(-2px);
}

.project-more-link:hover::after {
    transform: translateX(4px);
}
/* --- UPDATED PREMIUM CERTIFICATIONS CARD STYLING --- */
/* --- UPDATED CLEAN CERTIFICATIONS STYLING --- */
.certifications-card {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1rem;
    height: 100%;
}

.certifications-card .section-tag {
    color: var(--accent-purple);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Flex layout to align bullets and text properly */
.certifications-text-only {
    display: flex;
    flex-direction: column;
    gap: 0.75rem; /* Increased spacing to avoid paragraph look */
    margin-bottom: auto;
    margin-top: 0.2rem;
}

.cert-item-row {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

/* Minimalist Custom Bullet Point */
.cert-bullet {
    font-size: 0.45rem;
    color: var(--accent-purple);
    margin-top: 0.35rem; /* Aligns perfectly with the first line of text */
    opacity: 0.7;
}

.cert-item {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1.3;
    margin: 0;
    transition: color 0.2s;
    cursor: default;
}

/* Hover effect on rows */
.cert-item-row:hover .cert-item {
    color: var(--text-primary);
}

.cert-item-row:hover .cert-bullet {
    opacity: 1;
    transform: scale(1.1);
}

/* Bottom Footer Logo Alignment */
.cert-logos-footer {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-top: 1rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.brand-icon {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.3);
    transition: all 0.25s ease;
}

.brand-icon:hover {
    color: var(--accent-purple);
    transform: translateY(-2px);
}
.skills-card {
    grid-column: span 2; /* Increased from 1.5 to 2 for a completely proportional shape */
}

/* --- ROW 3 LAYOUT (Total: 12 Cols) --- */
.experience-card {
    grid-column: span 4;
}

.leadership-card {
    grid-column: span 4; /* Aligned with grid columns above */
}

.hobbies-vertical-card {
    grid-column: span 2; /* Increased from 1.5 to 2 to give list elements breathing room */
}

.contact-action-wrapper {
    grid-column: span 2; /* Increased from 1.5 to 2 so buttons and forms expand naturally */
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    justify-content: space-between;
}

/* ==========================================================================
   4. INTERNAL CARD STYLING & CONTENT LAYOUTS
   ========================================================================== */

/* --- PROFILE COMPONENT --- */
.avatar-circle-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #e6e6e6;
    margin: 0.5rem 0 1rem 0;
}

.profile-identity-footer h2 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
}

.sub-heading-text {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sub-heading-text i {
    font-size: 14px;
}

/* --- IDENTITY COMPONENT --- */
.identity-main-details h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.location-marker, .email-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.social-links-row {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    transition: 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
    background: rgba(255,255,255,0.12);
}

.empty-social-box {
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    cursor: pointer;
}

/* --- ADVANCED PIPELINE FLOW STYLING FOR BIO CARD --- */
.bio-card {
    grid-column: span 5;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.75rem; /* Adjusts snug uniform gap */
}

.bio-card .section-tag {
    color: var(--accent-purple);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Pipeline Architecture Grid Box */
.pipeline-visualization-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    margin: 0.25rem 0;
}

.pipeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    flex: 1;
}

.pipeline-icon-wrapper {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

/* Step Specific Color Variations to convey data purification state */
.step-raw .pipeline-icon-wrapper {
    color: #e5c07b; /* Raw Data Amber Color tone */
    background: rgba(229, 192, 123, 0.06);
}

.step-process .pipeline-icon-wrapper {
    color: var(--accent-blue); /* Processing Engineering Blue tone */
    background: rgba(88, 166, 255, 0.06);
}

.step-insight .pipeline-icon-wrapper {
    color: var(--accent-green); /* Purified Insights Green tone */
    background: rgba(63, 185, 80, 0.1);
    box-shadow: 0 0 12px rgba(63, 185, 80, 0.15);
}

.pipeline-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    font-family: var(--font-heading);
}

/* Connecting Pipelines Arrow Flows */
.pipeline-arrow-line {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.15);
    font-size: 0.75rem;
}

/* Micro Pipeline Processing Animations */
.pulse-arrow {
    animation: pipelinePulse 1.6s infinite ease-in-out;
}

.delay-arrow {
    animation-delay: 0.8s;
}

@keyframes pipelinePulse {
    0% {
        opacity: 0.3;
        transform: translateX(-2px);
    }
    50% {
        opacity: 1;
        color: var(--accent-blue);
    }
    100% {
        opacity: 0.3;
        transform: translateX(2px);
    }
}

.bio-content-body p {
    font-size: 0.88rem;
    line-height: 1.45;
    color: var(--text-primary);
    margin-top: 0.2rem;
}

/* --- EDUCATION COMPONENT STYLING & CLOSER SPACING --- */
.education-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Aligns contents to the top */
    
}

.education-card .section-tag {
    margin-bottom: 0.5rem; /* Reduces gap directly under the EDUCATION text */
    color: var(--accent-purple);
}

.education-block-layout {
    display: flex;
    flex-direction: column;
    gap: 0.45rem; /* Tight dynamic uniform gap between content lines */
}

.degree-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 0.5rem; /* Spacing between graduate icon and degree text */
    color: var(--text-primary);
}

.degree-title i {
    color: var(--accent-purple); /* Purple tint for student icon */
    font-size: 0.95rem;
}

/* Fixed institution layout to prevent overlapping building icon */
.institution-header-group {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin-top: 0.1rem;
}

.institution-icon {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 0.25rem; /* Vertically centers icon with first line of wrapped text */
    flex-shrink: 0;
}

.institution-name {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.3;
}

.timeline-span-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.05rem;
}

.timeline-span-text i {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.gpa-pill-badge {
    align-self: flex-start;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-blue);
    background: rgba(88, 166, 255, 0.1);
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.gpa-pill-badge i {
    font-size: 0.7rem;
    color: #ffcc00; /* Star indicator custom gold shade */
}

/* Dean's Honor Roll styling wrapper */
.honor-roll-badge {
    align-self: flex-start;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-green);
    background: rgba(63, 185, 80, 0.1);
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    margin-top: 0.1rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.honor-roll-badge i {
    font-size: 0.75rem;
}
/* --- PROJECTS COMPONENT --- */
.project-header-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-counter-tag {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.projects-visual-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
    margin-top: auto;
    width: 100%;
}

.project-preview-wrapper {
    aspect-ratio: 1 / 1;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-media-placeholder {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* --- CERTIFICATIONS COMPONENT (PROPORTIONAL ADJUSTMENT) --- */


.empty-mini-icon {
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}


/* --- EXPERIENCE COMPONENT --- */
.experience-card {
    grid-column: span 4;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 1.4rem; /* Matching the neat breathing layout */
}

.experience-header-line {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
}

.experience-card .section-tag {
    color: var(--accent-blue);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.experience-counter-tag {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    padding: 0.15rem 0.45rem;
    border-radius: 6px;
    line-height: 1;
}

.experience-rows-list {
    display: flex;
    flex-direction: column;
    gap: 1.1rem; /* Better row distribution */
    width: 100%;
}

.experience-row-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.4rem 0;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02); /* Delicate divider look */
}

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

.exp-index-num {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.3); /* Subtle premium indexing text */
}

.exp-details-block {
    flex: 1;
    min-width: 0;
}

.exp-details-block h5 {
    font-size: 0.88rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.3;
    margin: 0;
}

.exp-company {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
    margin-bottom: 0;
}

/* Elite Right-Aligned Automation & Tools Icons Row */
.exp-tech-stack-group {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    padding-left: 0.5rem;
}

.exp-tech-stack-group i {
    transition: color 0.2s, transform 0.2s;
    cursor: help;
}

/* Subtle accent focus highlight when viewing individual items */
.experience-row-item:hover .exp-tech-stack-group i {
    color: rgba(255, 255, 255, 0.7);
}

.experience-row-item:hover .exp-tech-stack-group i:hover {
    color: var(--accent-purple);
    transform: scale(1.15);
}

/* --- LEADERSHIP COMPONENT --- */
.leadership-card {
    grid-column: span 4;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 1.2rem;
    position: relative;
}

.leadership-header-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.leadership-card .section-tag {
    color: var(--accent-purple);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.leadership-timeline-content {
    display: flex;
    flex-direction: column;
    gap: 1.1rem; /* Slightly spaced out for clean look */
    width: 100%;
}

.leadership-entry {
    display: flex;
    align-items: center;
    gap: 0.8rem; /* Clean gap between free icon and text */
    padding: 0.2rem 0;
    width: 100%;
}

/* Free floating transparent brand icon without boxes */
.leader-brand-icon-free {
    width: 28px;  /* Optimal elite look size */
    height: 28px;
    object-fit: contain;
    display: block;
    background: transparent;
}

.leader-details {
    display: flex;
    flex-direction: column;
}

.leadership-entry strong {
    font-size: 0.88rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.3;
}

.leadership-entry p {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
    margin-bottom: 0;
}

/* Upgraded Slick Tagline Concept */
.leadership-tagline {
    font-size: 0.8rem;
    font-weight: 600;
    color: #4ade80; 
    opacity: 0.85;
    letter-spacing: 0.02em;
    margin-top: auto; 
    margin-bottom: 0;
    padding-top: 0.5rem;
}

/* Micro-interaction highlight */
.leadership-entry:hover strong {
    color: var(--accent-purple);
    transition: color 0.2s ease;
}
/* --- I LIKE COMPONENT (PROPORTIONAL ADJUSTMENT) --- */
.hobbies-vertical-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    justify-content: flex-start;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.hobbies-vertical-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.empty-hobby-icon-slot {
    width: 18px;
    height: 18px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    flex-shrink: 0;
}

.hobbies-vertical-list span {
    font-size: 0.85rem;
    color: var(--text-primary);
}

.hobbies-vertical-card .section-tag {
    color: var(--accent-blue);
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    text-transform: uppercase; /* Makes it sleek and uniform */
    letter-spacing: 0.05em; /* Premium horizontal text spacing */
}
/* --- ACTION CONTROLS & CHATBOT EMBED --- */
.resume-pill-trigger {
    background: #e6e6e6;
    color: #000000;
    text-align: center;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.6rem 0;
    border-radius: 24px;
    display: block;
    width: 100%;
    transition: background 0.2s ease;
}

.resume-pill-trigger:hover {
    background: #ffffff;
}

/* --- PREMIUM INTEGRATED CHATBOT DESIGN --- */
.chatbot-embed-box {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    width: 100%;
    gap: 0.8rem;
}

/* Chat Screen Interface Spacing Setup */
.chat-interface-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Aligns bubble card perfectly inside the empty center block */
    padding: 0.5rem 0;
}

.bot-message-bubble {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.85rem 1rem;
    border-radius: 14px;
    backdrop-filter: blur(4px);
    animation: smoothFadeUp 0.4s ease-out;
}

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

/* Glowing Dynamic Avatar Control */
.bot-avatar-glow {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(137, 87, 229, 0.1);
    border: 1px solid rgba(137, 87, 229, 0.25);
    color: var(--accent-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(137, 87, 229, 0.1);
}

.bot-text-content {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.bot-name-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-purple);
}

.bot-greeting-line {
    font-size: 0.85rem;
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.3;
    margin: 0;
}

/* Inline Form Row Control */
.chatbot-inline-form {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 0.35rem 0.5rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chatbot-inline-form:focus-within {
    border-color: rgba(137, 87, 229, 0.4);
    box-shadow: 0 0 12px rgba(137, 87, 229, 0.08);
}

.chatbot-input-field {
    flex-grow: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 0.85rem;
    padding: 0.4rem 0.5rem;
}

.chatbot-input-field::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

/* Submit Action Control Arrow */
.chatbot-submit-btn {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.4rem 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.chatbot-submit-btn i {
    font-size: 0.85rem;
    transition: transform 0.2s ease;
}

.chatbot-submit-btn:hover {
    color: var(--accent-purple);
}

.chatbot-submit-btn:hover i {
    transform: scale(1.1) rotate(-10deg);
}
/* ==========================================================================
   5. RESPONSIVE MEDIA BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .profile-card, .identity-card, .bio-card,
    .education-card, .projects-card, .certifications-card,
    .skills-card, .experience-card, .leadership-card,
    .hobbies-vertical-card, .contact-action-wrapper {
        grid-column: span 2;
    }
    .chatbot-embed-box {
        min-height: 70px;
    }
}

@media (max-width: 640px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .profile-card, .identity-card, .bio-card,
    .education-card, .projects-card, .certifications-card,
    .skills-card, .experience-card, .leadership-card,
    .hobbies-vertical-card, .contact-action-wrapper {
        grid-column: span 1;
    }
    .top-banner {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}


/* FontAwesome Global Hover Interactions */
.social-links-row i {
    transition: color 0.2s ease, transform 0.2s ease;
}
.social-links-row i:hover {
    color: var(--text-primary);
    transform: translateY(-2px);
}
.chatbot-submit-btn:hover i {
    transform: scale(1.15);
    color: var(--accent-purple);
}



/* --- COMPACT STRUCTURAL RESET FOR CHATBOT SECTION --- */
.premium-compact-action-flow {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    height: 100%;
    justify-content: flex-start; /* Stops child containers from forcing grid row expansion */
}

/* Hard max-height capping to instantly fix other card's stretching behavior */
.compact-bot-view {
    max-height: 135px !important; 
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.4rem !important;
}

.compact-bot-view .chat-interface-body {
    padding: 0.2rem 0 !important;
}

.compact-bot-view .bot-message-bubble {
    padding: 0.5rem 0.75rem !important;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.compact-bot-view .bot-greeting-line {
    font-size: 0.78rem !important;
    line-height: 1.2;
}

/* --- RE-DESIGNED MODERN TECH RESUME BUTTON --- */
.premium-resume-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.6rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-resume-action-btn i {
    color: var(--accent-purple);
    font-size: 0.9rem;
}

.premium-resume-action-btn:hover {
    background: var(--text-primary);
    color: #111111;
    border-color: var(--text-primary);
    transform: translateY(-1px);
}

.premium-resume-action-btn:hover i {
    color: #111111;
}



/* --- ROUTINE CARD HEADER RIGHT-ALIGN FIX --- */
/* Target the tag area to spread content edge-to-edge */
.bio-card .section-tag {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    position: relative;
}

/* Explicitly force the status container to the absolute right side */
.bio-card .availability-status {
    margin-left: auto !important; /* Pushes the entire block to the far right */
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem;
}


/* --- LIVE COMPACT SKILLS CLOUD (12-IMAGE MIX ENGINE) --- */
.skills-card {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.8rem;
    overflow: hidden;
}

.skills-header-line {
    display: flex;
    align-items: center;
    width: 100%;
}

.skills-card .section-tag {
    color: var(--accent-purple);
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* 2x2 Grid setup to isolate 4 areas completely */
.skills-cloud-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 1.5rem; 
    width: 100%;
    height: 160px; /* Marginally increased height to accommodate bigger icon size */
    margin-top: 0.4rem;
}

.grid-cell {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* Upgraded larger icons with zero box styling */
.cloud-free-icon {
    position: absolute;
    height: 48px; /* Increased from 32px to look premium & clear */
    width: auto;
    object-fit: contain;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    opacity: 0;
    
    /* Drift animation + 12s total rotation cycle animation */
    animation: simpleDrift 3s ease-in-out infinite alternate, 
               tripleStaggerSwap 12s infinite ease-in-out;
}

.cloud-free-icon:hover {
    opacity: 1 !important;
    transform: scale(1.15) !important;
    cursor: pointer;
    animation-play-state: paused;
}

/* --- TRIPLE STAGGERED TIMING DELAYS (4 Items Live at a time) --- */
.slot-a {
    animation-delay: 0s, 0s;
}
.slot-b {
    animation-delay: 0.5s, 4s; /* Shows second */
}
.slot-c {
    animation-delay: 1s, 8s; /* Shows third */
}

/* --- ANIMATION ENGINES --- */
@keyframes simpleDrift {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-4px); }
}

/* 12-second rotational logic divided flawlessly into 3 parts (33.3% duty cycle) */
@keyframes tripleStaggerSwap {
    0%, 100% {
        opacity: 0;
        filter: scale(0.9) blur(1px);
        pointer-events: none;
    }
    5%, 28% {
        opacity: 0.9;
        filter: scale(1) blur(0px);
        pointer-events: auto;
    }
    33.3%, 95% {
        opacity: 0;
        filter: scale(0.9) blur(1px);
        pointer-events: none;
    }
}


/* --- MOBILE RESPONSIVENESS FIX --- */

@media (max-width: 640px) {
    /* Bento grid ko 2 columns mein convert karein taake 2 cards side-by-side aayen */
    .bento-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.8rem !important; /* Mobile par gap thoda kam kar diya taake jagah bache */
    }

    /* Sabhi cards ko grid column span 1 kar dein taake woh 2-column grid mein fit ho jayen */
    .profile-card, 
    .identity-card, 
    .bio-card,
    .education-card, 
    .projects-card, 
    .certifications-card,
    .skills-card, 
    .experience-card, 
    .leadership-card,
    .hobbies-vertical-card, 
    .contact-action-wrapper {
        grid-column: span 1 !important;
    }

    /* Container padding kam karein mobile ke liye */
    .container {
        padding: 1rem 0.8rem !important;
    }

    /* Top banner ko mobile friendly banayein */
    .top-banner {
        flex-direction: row; /* Agar aap chahte hain banner chhota rahe */
        font-size: 0.8rem;
    }
}
