/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #06b6d4;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --border-color: #e5e7eb;
    --shadow-light: rgba(0, 0, 0, 0.05);
    --shadow-medium: rgba(0, 0, 0, 0.1);
    --shadow-strong: rgba(0, 0, 0, 0.25);

    --container-max-width: 1200px;
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --navbar-height: 65px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--navbar-height);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: var(--transition);
    overflow-x: hidden;
}

/* ========== REDESIGNED NAVIGATION BAR ========== */
.navbar {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: auto;
    position: relative;
}

/* Logo Section */
.nav-brand {
    flex-shrink: 0;
    z-index: 1001;
}

.nav-logo a {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    transition: var(--transition);
}

.nav-logo a:hover {
    transform: translateY(-1px);
}

.logo-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.logo-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.logo-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 0rem;
    align-items: center;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    padding: 0.6rem 0.85rem;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--primary-color);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(139, 92, 246, 0.08));
}

.nav-link.active {
    color: var(--primary-color);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(139, 92, 246, 0.1));
}

.nav-link i {
    font-size: 1rem;
}



.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: var(--transition);
    background: none;
    border: none;
    z-index: 1002;
}

.hamburger:hover {
    background: var(--bg-tertiary);
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    margin: 3px 0;
    transition: var(--transition);
    border-radius: 2px;
}

.hamburger.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Enhanced Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(-45deg, #7c3aed, #6366f1, #8b5cf6, #a855f7);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    color: white;
    padding-top: calc(var(--navbar-height) + 2rem);
    position: relative;
    overflow: hidden;
}

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

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Hero Background Effects */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    animation: float-shapes 25s infinite ease-in-out;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: -50px;
    left: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    top: 60%;
    right: 5%;
    animation-delay: 5s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    bottom: 10%;
    left: 15%;
    animation-delay: 10s;
}

.shape-4 {
    width: 250px;
    height: 250px;
    top: 10%;
    right: 20%;
    animation-delay: 15s;
}

@keyframes float-shapes {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg) scale(1);
        opacity: 0.08;
    }

    50% {
        transform: translateY(-40px) rotate(180deg) scale(1.1);
        opacity: 0.12;
    }
}

.hero-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    animation: fadeInLeft 1s ease;
}

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-badge i {
    color: #fbbf24;
}

/* Enhanced Hero Title */
.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 2rem;
    line-height: 1.1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.title-greeting {
    font-size: 0.6em;
    font-weight: 500;
    opacity: 0.9;
    color: #e0e7ff;
}

.title-name {
    background: linear-gradient(45deg, #ffffff, #e0e7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-highlight {
    font-size: 0.7em;
    font-weight: 600;
    color: #fbbf24;
}

/* Hero Credentials */
.hero-credentials {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.credential {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    opacity: 0.95;
}

.credential i {
    width: 20px;
    color: #fbbf24;
    font-size: 1rem;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.7;
    max-width: 600px;
}

.hero-description strong {
    color: #fbbf24;
    font-weight: 600;
}

/* Hero Stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: #fbbf24;
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.8;
    font-weight: 500;
}

/* Enhanced Buttons */
.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(45deg, #fbbf24, #f59e0b);
    color: #1f2937;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-3px);
}

/* Simplified Hero Visual */
.hero-visual {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    animation: fadeInRight 1s ease 0.3s both;
    margin-top: -20rem;
    margin-left: 7rem;
}

.profile-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-image {
    position: relative;
    margin-bottom: 2rem;
}

.profile-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% + 30px);
    height: calc(100% + 30px);
    border-radius: 50%;
    background: linear-gradient(45deg, #fbbf24, #f59e0b, #fbbf24);
    background-size: 200% 200%;
    animation: rotateGradient 3s linear infinite;
    z-index: -1;
}

.profile-image::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% + 40px);
    height: calc(100% + 40px);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: pulse 2s ease-in-out infinite;
    z-index: -2;
}

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

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.05);
        opacity: 0.8;
    }
}

.profile-image img {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.profile-image img:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
}

.profile-placeholder {
    width: 280px;
    height: 280px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.profile-placeholder:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Hide profile ring and floating badges */
.profile-ring,
.floating-badges {
    display: none;
}

/* Hero Scroll Indicator */
.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    animation: bounce 2s infinite;
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Section Styles */
section {
    padding: 5rem 0;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--text-primary);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* About Section */
.about {
    background: white;
    padding: 5rem 0;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-text p {
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.stat {
    background: #f8fafc;
    padding: 1.5rem 1rem;
    border-radius: 16px;
    transition: var(--transition);
    border: none;
    position: relative;
}

.stat:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-light);
}

.stat h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat p {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.85rem;
}

/* Skills Section */
.skills {
    background: #f8fafc;
    padding: 4rem 0;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
}

.skill-category-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
    text-align: center;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.skill-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
}

.category-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 16px -4px rgba(124, 58, 237, 0.3);
}

.skill-category-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.skill-tag {
    background: #f1f5f9;
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.skill-category-card:hover .skill-tag {
    background: #f8fafc;
    color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Projects, Papers, Books Section Styling */
.projects,
.books,
.papers {
    background: var(--bg-secondary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    align-items: stretch;
    max-width: 700px;
    margin: 0 auto;
}

.project-card {
    background: var(--bg-primary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px var(--shadow-light);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 300px;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow-medium);
}

.project-image {
    height: 140px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.project-placeholder {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.8);
}

.project-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-height: 160px;
}

.project-content h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    line-height: 1.3;
    min-height: auto;
    display: flex;
    align-items: flex-start;
}

.project-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.4;
    flex-grow: 1;
    font-size: 0.9rem;
    min-height: auto;
}

.project-tech {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    min-height: 2.5rem;
    align-content: flex-start;
}

.project-tech span {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid var(--border-color);
    height: fit-content;
}

.project-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 1rem;
}

.project-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: var(--transition);
    border: 1px solid var(--primary-color);
    white-space: nowrap;
}

.project-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.papers-table {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    overflow: hidden;
}

.papers-table thead {
    background: linear-gradient(135deg, #7c3aed, #8b5cf6);
    color: white;
}

.papers-table thead th {
    padding: 1rem 1.25rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.papers-table thead th:first-child {
    width: 80px;
    text-align: center;
}

.papers-table thead th:last-child {
    width: 100px;
    text-align: center;
}

.papers-table tbody tr {
    border-bottom: 1px solid var(--border-color);
}

.papers-table tbody tr:last-child {
    border-bottom: none;
}

.papers-table tbody td {
    padding: 1rem;
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.papers-table tbody td:nth-child(2) {
    text-align: left !important;
    padding: 1rem 2rem;
}

.papers-table tbody td:first-child {
    text-align: center;
    font-weight: 600;
    color: var(--primary-color);
}

.papers-table tbody td:last-child {
    text-align: center;
    font-weight: 500;
    color: var(--text-secondary);
}

.papers-table tbody tr:nth-child(even) {
    background: var(--bg-secondary);
}


/* Timeline Section with Curved Connectors */
.roadmap {
    padding: 5rem 0;
    background: var(--bg-primary);
    position: relative;
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 0 2rem;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item.left {
    left: 0;
    text-align: right;
}

.timeline-item.right {
    left: 50%;
    text-align: left;
}

.timeline-dot {
    position: absolute;
    top: 2rem;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border: 4px solid var(--bg-primary);
    border-radius: 50%;
    box-shadow: 0 4px 10px var(--shadow-medium);
    z-index: 3;
    transition: var(--transition);
}

.timeline-item.left .timeline-dot {
    right: -2.6rem;
}

.timeline-item.right .timeline-dot {
    left: -2.6rem;
}

.timeline-dot:hover {
    transform: scale(1.3);
    background: var(--secondary-color);
}

/* Curved connecting lines using CSS curves */
.timeline-item::after {
    content: '';
    position: absolute;
    top: 2rem;
    width: 60px;
    height: 60px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    opacity: 0.6;
    z-index: 1;
}

.timeline-item.left::after {
    right: -1rem;
    border-left: none;
    border-bottom: none;
    transform: rotate(45deg);
}

.timeline-item.right::after {
    left: -1rem;
    border-right: none;
    border-bottom: none;
    transform: rotate(-45deg);
}

/* Additional curved path using pseudo-element */
.timeline-item::before {
    content: '';
    position: absolute;
    top: 2.5rem;
    width: 30px;
    height: 30px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    opacity: 0.3;
    z-index: 1;
}

.timeline-item.left::before {
    right: -0.5rem;
    border-left: none;
    border-bottom: none;
    transform: rotate(45deg);
}

.timeline-item.right::before {
    left: -0.5rem;
    border-right: none;
    border-bottom: none;
    transform: rotate(-45deg);
}

.timeline-content {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 10px 30px var(--shadow-light);
    border: 1px solid var(--border-color);
    position: relative;
    transition: var(--transition);
}

.timeline-content:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 35px var(--shadow-medium);
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

/* Curved arrow connectors pointing to timeline */
.timeline-content::after {
    content: '';
    position: absolute;
    top: 2rem;
    width: 0;
    height: 0;
    border: 10px solid transparent;
    z-index: 2;
}

.timeline-item.left .timeline-content::after {
    right: -20px;
    border-left: 10px solid var(--bg-primary);
}

.timeline-item.right .timeline-content::after {
    left: -20px;
    border-right: 10px solid var(--bg-primary);
}

.timeline-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.timeline-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Contact Section */
.contact {
    background: var(--bg-secondary);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
    font-size: 1.1rem;
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.contact-item i {
    color: var(--primary-color);
    width: 24px;
    font-size: 1.1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.2rem;
}

.social-link:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 20px var(--shadow-medium);
}

.contact-form {
    background: var(--bg-primary);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 15px 35px var(--shadow-light);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--bg-primary);
    color: var(--text-primary);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: var(--bg-primary);
    text-align: center;
    padding: 2rem 0;
}

/* Animations */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* Utility Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding-top: 2rem;
    }

    .hero-visual {
        margin-top: 1.5rem;
        align-items: center;
    }

    .hero-stats {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        justify-items: center;
        max-width: 400px;
        margin: 0 auto 2.5rem auto;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    /* Timeline responsive design */
    .timeline::before {
        left: 2rem;
        transform: none;
    }

    .timeline-item,
    .timeline-item.left,
    .timeline-item.right {
        width: 100%;
        left: 0;
        text-align: left;
        padding-left: 5rem;
        padding-right: 1rem;
    }

    .timeline-item::before,
    .timeline-item::after {
        display: none;
    }

    .timeline-dot {
        left: 1.4rem !important;
        right: auto !important;
    }

    .timeline-content::after {
        content: '';
        position: absolute;
        top: 2rem;
        left: -10px;
        width: 0;
        height: 0;
        border: 10px solid transparent;
        border-right: 10px solid var(--bg-primary);
        z-index: 2;
    }

    .timeline-item.left .timeline-content::after {
        left: -10px;
        border-left: none;
        border-right: 10px solid var(--bg-primary);
    }

    .logo-text {
        display: flex;
    }

    .logo-title {
        display: none;
    }

    .logo-name {
        font-size: 1rem;
        font-weight: 600;
    }

    .nav-link span {
        display: none;
    }

    /* Fix hero stats overlap */
    .stat-item {
        min-width: 120px;
        flex-shrink: 0;
    }

    .stat-number {
        font-size: 1.8rem;
        line-height: 1.2;
    }

    .stat-label {
        font-size: 0.8rem;
        text-align: center;
    }
}

@media (max-width: 768px) {
    :root {
        --navbar-height: 60px;
    }

    .nav-container {
        padding: 0 1rem;
        height: var(--navbar-height);
        justify-content: space-between;
    }

    .nav-brand {
        flex-shrink: 0;
        max-width: 70%;
    }

    .nav-logo a {
        gap: 0.75rem;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: var(--navbar-height);
        flex-direction: column;
        background: var(--bg-primary);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: 0 10px 30px var(--shadow-medium);
        padding: 2rem 0;
        border-top: 1px solid var(--border-color);
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        justify-content: center;
        margin: 0 1rem;
        padding: 1rem;
        font-size: 1rem;
    }

    .nav-link span {
        display: inline;
    }

    .hamburger {
        display: flex;
        padding: 0.75rem;
    }

    .hero {
        padding: calc(var(--navbar-height) + 2rem) 0 3rem 0;
        min-height: 100vh;
    }

    .hero-container {
        padding: 1rem;
        gap: 2rem;
    }

    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .hero-stats {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin: 2rem 0;
        justify-items: center;
    }

    .stat-item {
        text-align: center;
        min-width: 100px;
    }

    .stat-number {
        font-size: 1.5rem;
        display: block;
        margin-bottom: 0.25rem;
    }

    .stat-label {
        font-size: 0.75rem;
        line-height: 1.2;
    }

    .hero-credentials {
        gap: 0.75rem;
        margin: 1.5rem 0;
    }

    .credential {
        font-size: 0.9rem;
        justify-content: center;
        text-align: center;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    section {
        padding: 3rem 0;
    }

    .timeline {
        padding: 0 1rem;
    }

    .timeline::before {
        left: 1.5rem;
    }

    .timeline-item {
        padding-left: 3.5rem;
        padding-right: 0.5rem;
        margin-bottom: 2rem;
    }

    .timeline-dot {
        left: 1rem !important;
        width: 16px;
        height: 16px;
    }

    .timeline-content {
        padding: 1.5rem;
    }

    .timeline-content h3 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }

    .timeline-content p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .profile-placeholder {
        width: 220px;
        height: 220px;
        font-size: 3rem;
    }

    .logo-icon {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }

    .logo-text {
        display: flex;
    }

    .logo-name {
        font-size: 0.95rem;
        font-weight: 600;
        line-height: 1.2;
    }

    .logo-title {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }

    .nav-container {
        padding: 0 0.75rem;
        justify-content: space-between;
    }

    .nav-brand {
        flex-shrink: 0;
        max-width: 65%;
    }

    .nav-logo a {
        gap: 0.5rem;
    }

    .hero {
        padding: calc(var(--navbar-height) + 1.5rem) 0 2rem 0;
    }

    .hero-container {
        padding: 0.75rem;
        gap: 1.5rem;
    }

    .hero-title {
        font-size: clamp(1.8rem, 8vw, 2.2rem);
        margin-bottom: 1.5rem;
    }

    .title-greeting {
        font-size: 0.9rem;
    }

    .title-highlight {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    .hero-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
        margin-bottom: 1rem;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        margin-top: 1.5rem;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: 0.875rem 1.5rem;
        font-size: 0.875rem;
    }

    .hero-stats {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        margin: 1.5rem 0;
        padding: 0 0.5rem;
    }

    .stat-item {
        min-width: 80px;
        padding: 0.5rem 0.25rem;
    }

    .stat-number {
        font-size: 1.3rem;
        margin-bottom: 0.2rem;
    }

    .stat-label {
        font-size: 0.7rem;
        line-height: 1.1;
    }

    .hero-credentials {
        gap: 0.5rem;
        margin: 1rem 0;
    }

    .credential {
        font-size: 0.85rem;
        gap: 0.5rem;
    }

    .credential i {
        width: 16px;
        font-size: 0.9rem;
    }

    .profile-placeholder {
        width: 180px;
        height: 180px;
        font-size: 2.5rem;
    }

    .hero-visual {
        margin-top: 1rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .project-card {
        margin: 0 0.5rem;
    }

    .project-content {
        padding: 1.5rem;
        min-height: 250px;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .contact-content {
        gap: 2rem;
    }

    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .logo-text {
        display: flex;
    }

    .logo-name {
        font-size: 0.85rem;
        font-weight: 600;
        line-height: 1.2;
        white-space: nowrap;
    }

    .logo-title {
        display: none;
    }

    /* Timeline mobile adjustments */
    .timeline {
        padding: 0 0.75rem;
    }

    .timeline::before {
        left: 1rem;
        width: 3px;
    }

    .timeline-item {
        padding-left: 2.5rem;
        padding-right: 0.25rem;
        margin-bottom: 1.5rem;
    }

    .timeline-dot {
        left: 0.65rem !important;
        width: 14px;
        height: 14px;
    }

    .timeline-content {
        padding: 1.25rem;
    }

    .timeline-content h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .timeline-content p {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    /* Section spacing adjustments */
    section {
        padding: 2.5rem 0;
    }

    .about-stats {
        gap: 1rem;
    }

    .stat {
        padding: 1.5rem;
    }

    .skills-grid {
        gap: 1rem;
    }

    .skill-card {
        padding: 1.5rem;
    }

    /* Form improvements */
    .form-group input,
    .form-group textarea {
        padding: 0.875rem;
        font-size: 0.9rem;
    }

    .social-links {
        gap: 0.75rem;
    }

    .social-link {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

/* Academics Section */
/* Academics Section */
.academics {
    background: #f8fafc;
    padding: 4rem 0;
}

.academics .container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.academics-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1100px;
    margin: 0 auto;
}

.academic-subsection {
    margin-bottom: 0;
}

.subsection-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: center;
    text-align: center;
}

.subsection-title i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.education-grid,
.experience-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
    padding-left: 2rem;
    border-left: 2px solid #e2e8f0;
}

.education-card,
.experience-card {
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border: none;
    position: relative;
    margin-left: 1rem;
}

.education-card:hover,
.experience-card:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.edu-icon,
.exp-icon {
    position: absolute;
    left: -3.8rem;
    top: 1.25rem;
    width: 44px;
    height: 44px;
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.1rem;
    box-shadow: 0 0 0 4px #f8fafc;
    z-index: 10;
}

/* Connect dot to card */
.education-card::before,
.experience-card::before {
    content: '';
    position: absolute;
    left: -1rem;
    top: 2.2rem;
    width: 1rem;
    height: 2px;
    background: #e2e8f0;
}

.education-card .card-content,
.experience-card .card-content {
    flex: 1;
}

.education-card h4,
.experience-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
    line-height: 1.3;
}

.education-card .institution,
.experience-card .institution {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.experience-card .organization {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.education-card .year,
.experience-card .duration {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.85rem;
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #f1f5f9;
    border-radius: 20px;
}

/* Research Section */
.research-section {
    background: #f8fafc;
    padding: 4rem 0;
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.research-card {
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
    border: none;
}

.research-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.research-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
}

.research-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.research-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.research-list li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    border-bottom: none;
    position: relative;
    padding-left: 1rem;
    font-size: 0.9rem;
}

.research-list li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.8rem;
}

.research-list li:last-child {
    border-bottom: none;
}

.stats-row {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.stat-item {
    flex: 1;
    text-align: center;
    padding: 1rem 0.5rem;
    background: #f8fafc;
    border-radius: 12px;
}

.stat-number {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.stat-label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

/* Grants Section */
.grants {
    background: #f8fafc;
    padding: 4rem 0;
}

.grants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.grant-item {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
    display: flex;
    gap: 1rem;
    border: none;
}

.grant-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.grant-icon {
    width: 45px;
    height: 45px;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
}

.grant-content h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.grant-agency {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
}

.grant-amount {
    font-size: 1.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.grant-purpose {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.grant-year {
    display: inline-block;
    background: var(--bg-secondary);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Patents Section */
.patents {
    background: white;
    padding: 4rem 0;
}

.patents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.patent-item {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: var(--transition);
    border: none;
}

.patent-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.patent-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.patent-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.patent-status {
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.patent-status.granted {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
    border: 1px solid var(--success-color);
}

.patent-status.pending {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
    border: 1px solid var(--warning-color);
}

.patent-item h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.patent-number {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.patent-desc {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.patent-year {
    color: var(--text-secondary);
    font-weight: 500;
}

/* STTP Section */
.sttp {
    background: white;
    padding: 4rem 0;
}

.sttp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.sttp-card {
    background: #f8fafc;
    padding: 1.75rem;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: var(--transition);
    border: none;
    text-align: center;
}

.sttp-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.sttp-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin: 0 auto 1.25rem;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.2);
}

.sttp-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.4;
    min-height: 2.8em;
}

.sttp-organizer {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.sttp-date {
    display: inline-block;
    background: white;
    color: var(--primary-color);
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid var(--primary-color);
}

/* Workshops Section */
.workshops {
    background: white;
    padding: 4rem 0;
}

.workshops-table {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    overflow: hidden;
}

.workshops-table thead {
    background: linear-gradient(135deg, #7c3aed, #8b5cf6);
    color: white;
}

.workshops-table thead th {
    padding: 1rem 1.25rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.workshops-table tbody tr {
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.2s;
}

.workshops-table tbody tr:hover {
    background-color: #f8fafc;
}

.workshops-table tbody tr:last-child {
    border-bottom: none;
}

.workshops-table tbody td {
    padding: 1rem 1.25rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.workshops-table tbody td:first-child {
    color: var(--text-primary);
    font-weight: 500;
}

.workshops-table tbody td:last-child {
    color: var(--primary-color);
    font-weight: 600;
    white-space: nowrap;
}

/* Conferences Section */
.conferences {
    background: #f8fafc;
    padding: 4rem 0;
}

.conferences-table {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    overflow: hidden;
}

.conferences-table thead {
    background: linear-gradient(135deg, #7c3aed, #8b5cf6);
    color: white;
}

.conferences-table thead th {
    padding: 1rem 1.25rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.conferences-table tbody tr {
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.2s;
}

.conferences-table tbody tr:hover {
    background-color: #f8fafc;
}

.conferences-table tbody tr:last-child {
    border-bottom: none;
}

.conferences-table tbody td {
    padding: 1rem 1.25rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.conferences-table tbody td:first-child {
    color: var(--text-primary);
    font-weight: 500;
}

.conferences-table tbody td:last-child {
    color: var(--primary-color);
    font-weight: 600;
    white-space: nowrap;
}

/* Co-Curricular Activities */
.cocurricular {
    background: white;
    padding: 4rem 0;
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.activity-card {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: var(--transition);
}

.activity-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.activity-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.activity-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
}

/* Content Development */
.content-development {
    background: #f8fafc;
    padding: 4rem 0;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.content-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.content-card i {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.25rem;
}

.content-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.content-card p {
    color: var(--text-secondary);
    font-weight: 500;
}

/* Online Certifications - Professional Grid */
.certifications {
    background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);
    padding: 4rem 0;
    position: relative;
}

.certifications .section-title {
    color: white;
}

.cert-list {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.cert-item {
    background: rgba(255, 255, 255, 0.95);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    border-left: 4px solid #fbbf24;
    backdrop-filter: blur(10px);
}

.cert-item:hover {
    background: white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
    border-left-width: 6px;
}

.cert-item i {
    color: #f59e0b;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.cert-item {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.9rem;
}

/* International Exposure Section */
.international {
    background: white;
    padding: 4rem 0;
}

.international-card {
    max-width: 700px;
    margin: 0 auto;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    padding: 3rem;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 2px solid #e5e7eb;
    transition: var(--transition);
}

.international-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.exposure-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.exposure-icon i {
    font-size: 2.5rem;
    color: white;
}

.international-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.exposure-details {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
}

.exposure-date {
    display: inline-block;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
}

/* Research Project Section */
.research-project {
    background: #f8fafc;
    padding: 4rem 0;
}

.research-card {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    border-top: 5px solid var(--primary-color);
}

.research-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.project-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 1.5rem 0;
}

.project-icon i {
    font-size: 2rem;
    color: white;
}

.research-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.project-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.project-collab {
    color: var(--text-secondary);
    font-size: 0.95rem;
    padding: 1rem 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.project-collab i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

/* Industrial Training */
.training {
    background: #f8fafc;
    padding: 4rem 0;
}

.training-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.training-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
    text-align: center;
}

.training-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.training-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.25rem;
}

.training-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.training-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.training-card .year {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.4rem 1.25rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Professional Bodies */
.professional {
    background: white;
    padding: 4rem 0;
}

.professional-card {
    max-width: 600px;
    margin: 0 auto;
    background: linear-gradient(135deg, #f8fafc, white);
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border: 2px solid #f1f5f9;
}

.professional-card i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.professional-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.professional-card p {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

/* Achievements Section */
.achievements {
    background: #f8fafc;
    padding: 4rem 0;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.achievement-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.achievement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.achievement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.achievement-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.achievement-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.achievement-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.achievement-card .year {
    display: inline-block;
    background: #f1f5f9;
    color: var(--primary-color);
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
}

/* Contributions Section */
.contributions {
    background: #f8fafc;
    padding: 4rem 0;
}

.contributions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.contribution-card {
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: none;
    transition: var(--transition);
}

.contribution-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.contribution-icon {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.contribution-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.contribution-list {
    list-style: none;
    padding: 0;
}

.contribution-list li {
    padding: 0.65rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
    line-height: 1.5;
}

.contribution-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}

/* Modern Footer */
.footer {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: white;
    padding: 3rem 0;
    margin-top: 0;
}

.footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

.footer p {
    color: #94a3b8;
    font-size: 0.95rem;
}

/* Contact Section Polish */
.contact {
    background: white;
    padding: 5rem 0;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
    background: #f8fafc;
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.contact-form .btn-primary {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    border-radius: 12px;
}

/* Global Polish */
section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

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

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-stats {
        margin: 0 auto 2rem;
    }

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

    .research-grid,
    .grants-grid,
    .patents-grid,
    .contributions-grid,
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

/* Print styles */
@media print {

    .navbar,
    .hamburger,
    .dark-mode-toggle,
    .hero-buttons,
    .contact-form,
    .floating-shapes,
    .hero-scroll {
        display: none;
    }

    .hero {
        background: none;
        color: black;
        min-height: auto;
        padding: 2rem 0;
    }

    section {
        padding: 1rem 0;
        page-break-inside: avoid;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}