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

:root {
    /* Light theme colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --text-muted: #6b7280;
    --accent-primary: #2563eb;
    --accent-secondary: #eff6ff;
    --border-color: #e5e7eb;
    --shadow-light: rgba(0, 0, 0, 0.05);
    --shadow-medium: rgba(0, 0, 0, 0.1);
    --nav-bg: rgba(255, 255, 255, 0.95);
    --nav-shadow: rgba(0, 0, 0, 0.1);
}

.dark-theme {
    /* Dark theme colors */
    --bg-primary: #111827;
    --bg-secondary: #1f2937;
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --text-muted: #9ca3af;
    --accent-primary: #3b82f6;
    --accent-secondary: #1e3a8a;
    --border-color: #374151;
    --shadow-light: rgba(0, 0, 0, 0.3);
    --shadow-medium: rgba(0, 0, 0, 0.4);
    --nav-bg: rgba(17, 24, 39, 0.95);
    --nav-shadow: rgba(0, 0, 0, 0.3);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-primary);
}

.theme-toggle {
    display: flex;
    align-items: center;
    margin-left: 1rem;
}

.theme-toggle-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-primary);
}

.theme-toggle-btn:hover {
    background: var(--accent-secondary);
    color: var(--accent-primary);
    transform: scale(1.05);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.dark-theme .hero {
    background: linear-gradient(135deg, #4338ca 0%, #5b21b6 100%);
}

.hero-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.hero-text h2 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    opacity: 0.9;
}

.hero-text h3 {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

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

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: #ffffff;
    color: var(--accent-primary);
}

.btn-primary:hover {
    background: #f8fafc;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--accent-primary);
}

.profile-img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Section Styles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

/* Experience Section */
.experience {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--accent-primary);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 80px;
}

.timeline-marker {
    position: absolute;
    left: 22px;
    top: 0;
    width: 16px;
    height: 16px;
    background: var(--accent-primary);
    border-radius: 50%;
    border: 4px solid var(--bg-secondary);
}

.timeline-content {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px var(--shadow-light);
    border: 1px solid var(--border-color);
}

.timeline-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.timeline-content h4 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.location {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.timeline-date {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

.timeline-content p {
    margin: 1rem 0;
    color: var(--text-secondary);
    line-height: 1.7;
}

.experience-details {
    margin: 1.5rem 0;
}

.experience-details p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.experience-details p:last-child {
    margin-bottom: 0;
}

.experience-details strong {
    color: var(--text-primary);
    font-weight: 600;
}

.achievements {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.achievement-tag {
    background: var(--accent-secondary);
    color: var(--accent-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
}

/* Impact Section */
.impact {
    padding: 80px 0;
    background: var(--bg-primary);
}

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

.impact-item {
    background: var(--bg-secondary);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.impact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), #3b82f6);
}

.impact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-medium);
}

.impact-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 1rem;
    line-height: 1;
}

.impact-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.5;
    font-weight: 500;
}

/* Publications Section */
.publications {
    padding: 80px 0;
    background: var(--bg-primary);
}

.publications-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.publication-category h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.publication-category h3 i {
    color: var(--accent-primary);
}

.publication-list {
    /* Removed invalid space-y property */
}

.publication-item {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--accent-primary);
    border: 1px solid var(--border-color);
}

.publication-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.publication-item p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.publication-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.publication-link:hover {
    text-decoration: underline;
}

.publication-date {
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 500;
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    border: 2px solid var(--accent-primary);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
}

/* Skills Section */
.skills {
    padding: 80px 0;
    background: #f8fafc;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-category {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.skill-category h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-category h3 i {
    color: #2563eb;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background: #eff6ff;
    color: #2563eb;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid #dbeafe;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: white;
}

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

.contact-content p {
    font-size: 1.1rem;
    color: #4b5563;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: #f8fafc;
    border-radius: 8px;
    text-decoration: none;
    color: #1f2937;
    transition: all 0.3s ease;
    min-width: 300px;
}

.contact-link:hover {
    background: #eff6ff;
    color: #2563eb;
    transform: translateY(-2px);
}

.contact-link i {
    font-size: 1.25rem;
    color: #2563eb;
    width: 20px;
}

/* Footer */
.footer {
    background: #1f2937;
    color: white;
    padding: 2rem 0;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .profile-img {
        width: 250px;
        height: 250px;
    }
    
    .publications-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        padding-left: 60px;
    }
    
    .timeline-marker {
        left: 12px;
    }
    
    .contact-link {
        min-width: auto;
        width: 100%;
    }
    
    .hero-buttons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .profile-img {
        width: 200px;
        height: 200px;
    }
    
    .timeline-content {
        padding: 1.5rem;
    }
    
    .skill-category {
        padding: 1.5rem;
    }
}
/* Videos Section */
.videos {
    padding: 80px 0;
    background: var(--bg-secondary);
}

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

.video-item {
    background: var(--bg-primary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

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

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-info {
    padding: 1.5rem;
}

.video-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.video-info p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Responsive adjustments for videos */
@media (max-width: 768px) {
    .videos-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .video-item {
        margin: 0 10px;
    }
}

@media (max-width: 600px) {
    .videos-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .video-info {
        padding: 1rem;
    }
    
    .video-info h3 {
        font-size: 1.1rem;
    }
}
/* Skills Section */
.skills {
    padding: 80px 0;
    background: var(--bg-primary);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-category {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px var(--shadow-light);
    border: 1px solid var(--border-color);
}

.skill-category h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-category h3 i {
    color: var(--accent-primary);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background: var(--accent-secondary);
    color: var(--accent-primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: var(--bg-primary);
}

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

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

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: var(--bg-primary);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    min-width: 300px;
    border: 1px solid var(--border-color);
}

.contact-link:hover {
    background: var(--accent-secondary);
    color: var(--accent-primary);
    transform: translateY(-2px);
}

.contact-link i {
    font-size: 1.25rem;
    color: var(--accent-primary);
    width: 20px;
}

/* Business Card View */
.business-card-view .hero {
    min-height: 60vh;
}

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

.business-card-view .skills {
    padding: 40px 0;
}

.business-card-view .contact {
    padding: 40px 0;
}

.business-card-view .skills-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.business-card-view .skill-category {
    padding: 1.5rem;
}

.business-card-view .contact-content {
    max-width: 800px;
}

.business-card-view .contact-links {
    flex-direction: row;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 1rem;
}

.business-card-view .contact-link {
    min-width: 200px;
    flex: 1;
    max-width: 300px;
}

/* Quick Summary for Business Card View */
.quick-summary {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--bg-primary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.summary-point {
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: 6px;
    border-left: 3px solid var(--accent-primary);
}

.summary-point strong {
    color: var(--accent-primary);
    display: block;
    margin-bottom: 0.25rem;
}

.business-card-view .business-card-only {
    display: block !important;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--bg-primary);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px var(--shadow-light);
        padding: 2rem 0;
        border-top: 1px solid var(--border-color);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .theme-toggle {
        margin-left: 0.5rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .profile-img {
        width: 250px;
        height: 250px;
    }
    
    .publications-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        padding-left: 60px;
    }
    
    .timeline-marker {
        left: 12px;
    }
    
    .contact-link {
        min-width: auto;
        width: 100%;
    }
    
    .hero-buttons {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .videos-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .video-info {
        padding: 1rem;
    }
    
    .video-info h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .profile-img {
        width: 200px;
        height: 200px;
    }
    
    .timeline-content {
        padding: 1.5rem;
    }
    
    .skill-category {
        padding: 1.5rem;
    }
    
    .theme-toggle-btn {
        width: 35px;
        height: 35px;
    }
}
/* Impact Section Responsive */
@media (max-width: 768px) {
    .impact-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .impact-item {
        padding: 2rem 1.5rem;
    }
    
    .impact-number {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .impact-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .impact-item {
        padding: 1.5rem 1rem;
    }
    
    .impact-number {
        font-size: 2.5rem;
    }
    
    .impact-description {
        font-size: 0.9rem;
    }
}
/* Timeline Location Responsive */
@media (max-width: 480px) {
    .timeline-content h4 {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .location {
        font-size: 0.8rem;
    }
}
/* Publications Grid Responsive */
@media (max-width: 1024px) {
    .publications-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (min-width: 1025px) and (max-width: 1400px) {
    .publications-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}
/* Hero Summary */
.hero-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
    justify-content: flex-start;
}

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

.summary-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: white;
    line-height: 1;
}

.summary-label {
    display: block;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.25rem;
}

/* Additional Button Styles */
.btn-tertiary {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.btn-tertiary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    margin-top: 1.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Education Section */
.education {
    padding: 80px 0;
    background: var(--bg-secondary);
}

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

.education-item {
    background: var(--bg-primary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px var(--shadow-light);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.education-content {
    padding: 2rem;
}

.education-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.education-content h4 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

.education-date {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
    display: block;
    margin-bottom: 1rem;
}

.education-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.education-location {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Print Styles */
@media print {
    .navbar, .theme-toggle, .hamburger {
        display: none !important;
    }
    
    .hero {
        background: white !important;
        color: black !important;
        padding: 20px 0 !important;
        min-height: auto !important;
        page-break-after: avoid;
    }
    
    .hero-text h1, .hero-text h2, .hero-text h3 {
        color: black !important;
    }
    
    .hero-description {
        color: #333 !important;
    }
    
    .hero-buttons {
        display: none !important;
    }
    
    .hero-summary {
        display: flex !important;
        justify-content: space-between !important;
        margin: 15px 0 !important;
        padding: 10px 0 !important;
        border-top: 1px solid #ddd !important;
        border-bottom: 1px solid #ddd !important;
    }
    
    .summary-item {
        text-align: center !important;
    }
    
    .summary-number {
        color: #2563eb !important;
        font-size: 1.5rem !important;
    }
    
    .summary-label {
        color: #666 !important;
        font-size: 0.75rem !important;
    }
    
    .section-title {
        font-size: 1.5rem !important;
        margin: 20px 0 15px !important;
        color: #2563eb !important;
        border-bottom: 2px solid #2563eb !important;
        padding-bottom: 5px !important;
    }
    
    .timeline-content, .impact-item, .skill-category, .education-item {
        break-inside: avoid;
        margin-bottom: 15px !important;
        border: 1px solid #ddd !important;
        padding: 15px !important;
    }
    
    .videos, .contact {
        display: none !important;
    }
    
    .publications {
        page-break-before: auto !important;
    }
    
    .publication-item {
        margin-bottom: 10px !important;
        padding: 10px !important;
        border-left: 3px solid #2563eb !important;
    }
    
    .publication-link {
        color: #2563eb !important;
        text-decoration: none !important;
    }
    
    .publication-link::after {
        content: " (" attr(href) ")" !important;
        font-size: 0.7rem !important;
        color: #666 !important;
    }
    
    .contact-link::after {
        content: " (" attr(href) ")" !important;
        font-size: 0.7rem !important;
        color: #666 !important;
    }
    
    body {
        font-size: 12px !important;
        line-height: 1.4 !important;
        color: black !important;
        background: white !important;
    }
    
    .profile-img {
        width: 120px !important;
        height: 120px !important;
        border: 2px solid #ddd !important;
    }
    
    .hero-content {
        grid-template-columns: 2fr 1fr !important;
        gap: 20px !important;
    }
    
    .achievement-tag, .skill-tag {
        background: #f0f0f0 !important;
        color: #333 !important;
        border: 1px solid #ddd !important;
    }
    
    .timeline-marker {
        background: #2563eb !important;
    }
    
    .timeline::before {
        background: #2563eb !important;
    }
    
    /* Ensure contact info is visible */
    .contact {
        display: block !important;
        padding: 20px 0 !important;
    }
    
    .contact-content p {
        display: none !important;
    }
    
    .contact-links {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-around !important;
        flex-wrap: wrap !important;
    }
    
    .contact-link {
        background: none !important;
        border: none !important;
        padding: 5px !important;
        min-width: auto !important;
        font-size: 0.8rem !important;
    }
}

/* Mobile Improvements */
@media (max-width: 768px) {
    .hero-summary {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        text-align: center;
        margin: 1.5rem 0;
    }
    
    .summary-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0.75rem;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .summary-number {
        font-size: 1.75rem;
    }
    
    .summary-label {
        font-size: 0.8rem;
        margin-top: 0.25rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
        margin-bottom: 0.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-direction: row;
        gap: 1rem;
    }
    
    .social-links {
        justify-content: center;
        margin-top: 1.5rem;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .education-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .summary-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .summary-point {
        padding: 0.5rem;
    }
}