/* CSS Reset & Variables */
:root {
    /* Modern Theme Palette (Shraddha Inspired) */
    --bg-body: #f9f9f9;
    --text-main: #111111;
    --text-muted: #666666;
    --accent-color: #FF6B00;
    /* Subtle orange accent from reference */
    --card-bg: #ffffff;
    --card-grey: #EAEAEA;
    /* For Project Cards */

    /* Spacing */
    --nav-height: 80px;
    --max-width: 1200px;

    /* Typography */
    --font-main: 'Inter', -apple-system, sans-serif;
    --font-size-base: 18px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    color: var(--text-main);
    background-color: var(--bg-body);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    font-size: var(--font-size-base);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

/* Layout Wrapper - Single Column Centered */
.site-wrapper {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
}

/* Utils */
.section {
    width: 100%;
    margin-bottom: 120px;
    /* Airy spacing */
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

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

/* Navigation */
.floating-nav {
    position: fixed;
    top: 20px;
    background: rgba(220, 220, 220, 0.5);
    /* Semi-transparent grey */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px 30px;
    border-radius: 50px;
    display: flex;
    gap: 30px;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.floating-nav a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
}

.floating-nav a.active,
.floating-nav a:hover {
    color: var(--text-main);
}

/* Sections & Headings */
.section-heading {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

.dot {
    color: var(--accent-color);
}

.blink {
    animation: blink 1s infinite;
    color: var(--accent-color);
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* Hero Section */
.hero-section {
    margin-top: 160px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.hero-content {
    flex: 1;
}

.hero-intro {
    font-size: 80px;
    font-weight: 800;
    line-height: 1.0;
    letter-spacing: -3px;
    color: #333;
    margin-bottom: 24px;
}

.hero-name {
    color: var(--text-main);
}

.hero-subtext {
    font-size: 20px;
    color: var(--text-muted);
    max-width: 600px;
    line-height: 1.6;
    margin-bottom: 32px;
}

.hero-image-wrapper {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid white;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

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

/* Social Icons */
.hero-socials {
    display: flex;
    gap: 20px;
}

.hero-socials a {
    font-size: 24px;
    color: var(--text-main);
    opacity: 0.7;
    transition: all 0.2s ease;
}

.hero-socials a:hover {
    opacity: 1;
    transform: translateY(-3px);
    color: var(--accent-color);
}

/* Grids */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Project Slider Override */
.projects-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 24px;
    padding-bottom: 20px;
    /* Space for scrollbar */
    -webkit-overflow-scrolling: touch;
    /* Hide scrollbar for standard browsers but keep functionality */
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) transparent;
}

/* Custom Scrollbar for Webkit */
.projects-slider::-webkit-scrollbar {
    height: 8px;
}

.projects-slider::-webkit-scrollbar-track {
    background: transparent;
}

.projects-slider::-webkit-scrollbar-thumb {
    background-color: #ddd;
    border-radius: 20px;
}

.projects-slider .project-card-modern {
    /* Exact calculation to show 3 cards at a time: (100% width - 2 gaps of 24px) / 3 */
    flex: 0 0 calc((100% - 48px) / 3);
    scroll-snap-align: start;
    min-width: 0;
    /* Override any defaults */
}

/* Experience */
.experience-container {
    display: grid;
    gap: 24px;
}

.exp-card {
    background: var(--card-bg);
    padding: 32px;
    border-radius: 20px;
    border: 1px solid #eee;
    transition: transform 0.2s;
}

.exp-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 12px;
}

.exp-header h3 {
    font-size: 20px;
    font-weight: 700;
}

.exp-company {
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 16px;
    font-size: 16px;
}

.exp-date {
    font-size: 14px;
    opacity: 0.7;
    font-family: monospace;
}

.exp-details-list {
    list-style-type: none;
    padding: 0;
}

.exp-details-list li {
    font-size: 15px;
    color: #444;
    margin-bottom: 8px;
    line-height: 1.6;
    position: relative;
    padding-left: 18px;
}

.exp-details-list li::before {
    content: "•";
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Education Cards */
.edu-card {
    height: 380px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease;
    background-size: cover;
    background-position: center;
}

.edu-card:hover {
    transform: translateY(-5px);
}

/* Uses assets now */
.card-rutgers {
    background-image: url('../assets/images/rutgers.jpg');
}

.card-svvv {
    background-image: url('../assets/images/svvv.jpg');
}

.edu-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.6), transparent);
    color: white;
}

.edu-overlay h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.edu-overlay p {
    font-size: 16px;
    opacity: 0.95;
    font-weight: 500;
}

/* Projects Cards (Modern Grey) */
.project-card-modern {
    background: var(--card-grey);
    /* Light grey #EAEAEA */
    border-radius: 24px;
    padding: 30px;
    height: 400px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.3s ease;
}

.project-card-modern:hover {
    background: #e0e0e0;
}

.proj-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.proj-top h3 {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    max-width: 80%;
}

.arrow-icon {
    font-size: 18px;
    color: var(--accent-color);
    transform: rotate(45deg);
    /* Point up-right */
}

/* No rotate for non-arrow icons */
.arrow-icon.fa-certificate,
.arrow-icon.fa-book-open,
.arrow-icon.fa-file-contract {
    transform: none;
}


.proj-desc {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 24px;
}

.proj-tags {
    margin-top: auto;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    z-index: 2;
}

.proj-tags span {
    background: rgba(0, 0, 0, 0.05);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #555;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.proj-number {
    position: absolute;
    bottom: 0px;
    right: 15px;
    font-size: 140px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.6);
    /* Subtle overlay effect */
    line-height: 1;
    z-index: 1;
    pointer-events: none;
}

/* Skills Cloud */
.skills-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    /* Center aligned as per Modern Theme */
    gap: 12px;
    max-width: 900px;
    margin: 0 auto;
}

.skill-pill {
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    transition: transform 0.2s;
    cursor: default;
}

.skill-pill:hover {
    transform: scale(1.05);
}

.pill-dark {
    background: #333;
    color: white;
}

.pill-orange {
    background: #FDE8D8;
    color: #D66D28;
}

.pill-light {
    background: #E9E9EB;
    color: #333;
}

.pill-blue {
    background: #E0EFFE;
    color: #3B82F6;
}

/* Responsive */
@media screen and (max-width: 900px) {
    .site-wrapper {
        padding: 0 20px;
    }

    .floating-nav {
        bottom: 20px;
        top: auto;
        /* Bottom nav on mobile */
        width: 90%;
        justify-content: space-around;
        padding: 10px;
    }

    .hero-section {
        flex-direction: column-reverse;
        text-align: center;
        margin-top: 100px;
    }

    .hero-intro {
        font-size: 48px;
    }

    .hero-subtext {
        margin: 0 auto 32px auto;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    .projects-slider {
        padding-bottom: 20px;
    }

    /* On mobile, show 1 card with a peek at the next (85% width) */
    .projects-slider .project-card-modern {
        flex: 0 0 85%;
        min-width: 280px;
    }

    .hero-image-wrapper {
        width: 220px;
        height: 220px;
    }

    .hero-socials {
        justify-content: center;
    }

    .edu-card,
    .project-card-modern {
        height: auto;
        min-height: 300px;
    }
}

/* Typing Cursor Animation */
.typing-cursor {
    display: inline-block;
    width: 2px;
    background-color: var(--accent-color);
    animation: blink 1s infinite;
    margin-left: 2px;
    vertical-align: bottom;
    /* Aligns visually with text baseline */
    color: var(--accent-color);
    /* Fallback if using pipe char */
    font-weight: bold;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Main Content Area */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 50px;
    padding-top: 10px;
    /* Align visually with profile image top if needed */
}

/* Content Flow */
.content-flow {
    display: flex;
    flex-direction: column;
    gap: 60px;
    width: 100%;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--primary-blue);
    /* Used the requested muted blue/primary blue */
    letter-spacing: -0.02em;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(0, 113, 227, 0.1);
    /* Very subtle underline */
}

.section-content p {
    margin-bottom: 16px;
    font-size: 17px;
    /* Slightly larger for readability */
    color: #424245;
}

.highlight-link {
    font-weight: 500;
}

/* News List */
.news-list {
    list-style: none;
}

.news-item {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
    align-items: baseline;
}

.news-date {
    min-width: 90px;
    font-weight: 700;
    font-size: 15px;
    color: var(--text-color);
    flex-shrink: 0;
}

.news-text {
    font-size: 16px;
}


/* Subtitle */
.profile-subtitle {
    font-size: 15px;
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 4px;
}

/* Experience Section */
.experience-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.experience-item {
    position: relative;
    padding-left: 20px;
    border-left: 2px solid var(--border-color);
}

.experience-item:hover {
    border-left-color: var(--primary-blue);
}

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 4px;
}

.exp-role {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color);
}

.exp-date {
    font-size: 14px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.exp-company {
    font-size: 16px;
    color: var(--primary-blue);
    font-weight: 500;
    margin-bottom: 12px;
}

.exp-details {
    list-style-type: none;
    padding: 0;
}

.exp-details li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 16px;
    color: #424245;
    font-size: 16px;
}

.exp-details li::before {
    content: "•";
    color: var(--primary-blue);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Updated Publication Icons (replacing thumbnails) */
.pub-icon-wrapper {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-hover);
    border-radius: 12px;
    flex-shrink: 0;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.pub-icon {
    font-size: 24px;
    color: var(--primary-blue);
}

.pub-description {
    font-size: 15px;
    color: var(--text-color);
    margin-top: 8px;
}

/* Card Content Styling */
.card-icon {
    width: 44px;
    height: 44px;
    background: rgba(0, 113, 227, 0.1);
    color: var(--primary-blue);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 20px;
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}

.card-desc {
    font-size: 15px;
    color: var(--text-color);
    line-height: 1.5;
    margin-bottom: 12px;
}

.card-tags {
    margin-top: auto;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.card-tags span {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 600;
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 100px;
    color: var(--text-muted);
}

/* Specific Card overrides */
.patent-badge-hero {
    background: rgba(255, 215, 0, 0.2);
    color: #bfa100;
    /* Darker gold for visibility on white */
    border: 1px solid rgba(255, 215, 0, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 16px;
    width: fit-content;
}

.group-title {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 16px;
    font-weight: 700;
}

.research-item,
.edu-row {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 12px 16px;
    background: white;
    border-radius: 12px;
    margin-bottom: 12px;
    border: 1px solid var(--border-color);
    transition: transform 0.2s;
}

.research-item:hover,
.edu-row:hover {
    transform: translateX(4px);
    border-color: var(--primary-blue);
}

.research-item i,
.edu-row i {
    color: var(--text-muted);
    font-size: 18px;
}

.res-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
}

.res-venue {
    font-size: 12px;
    color: var(--text-muted);
    display: block;
}

.edu-sub {
    font-size: 13px;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

.text-white {
    color: white !important;
}

.text-white-70 {
    color: rgba(255, 255, 255, 0.7) !important;
}

.text-white-90 {
    color: rgba(255, 255, 255, 0.9) !important;
}

.mt-2 {
    margin-top: 8px;
}

/* Responsive Bento (Stack on mobile) */
@media screen and (max-width: 900px) {
    .bento-grid {
        display: flex;
        flex-direction: column;
    }

    .bento-card {
        min-height: auto;
        /* reset height constraints */
    }

    .patent-feature {
        min-height: 250px;
        /* Ensure dark card has presence */
    }
}

/* Footer override */
.site-footer {
    margin-top: 80px;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}