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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: #e6eef8;
    background: radial-gradient(1200px 600px at 10% 10%, #071024 0%, transparent 15%),
                radial-gradient(1000px 500px at 90% 90%, #0b2236 0%, transparent 15%),
                linear-gradient(180deg, #071024 0%, #0b1220 60%);
    min-height: 100vh;
}

/* Navigation */
.navbar {
    background: radial-gradient(1200px 600px at 10% 10%, #071024 0%, transparent 15%),
                radial-gradient(1000px 500px at 90% 90%, #0b2236 0%, transparent 15%),
                linear-gradient(180deg, #071024 0%, #0b1220 60%);
    box-shadow: none;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo, .logo:link, .logo:visited, .logo:hover, .logo:active, .logo:focus {
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
    color: #7fb3ff;
    cursor: pointer;
}

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

.nav-link {
    text-decoration: none;
    color: #b7c7da;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.nav-link:hover {
    color: #7fb3ff;
}

.nav-link.active {
    color: #9fd0ff;
    font-weight: 600;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 20px;
}

/* Home Page Styles */
.hero-section {
    background: transparent; /* subtle panel on dark bg */
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.03);
    box-shadow: 0 8px 30px rgba(2,6,23,0.6);
    padding: 3rem;
    display: flex;
    gap: 3rem;
    align-items: center;
}

.profile-image {
    flex: 0 0 300px;
}

.profile-image img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 12px 40px rgba(2,6,23,0.7);
}

.profile-info {
    flex: 1;
}

.profile-info h1 {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.profile-info h2 {
    font-size: 1.3rem;
    color: #9fb0c9;
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #cbdcf0;
    margin-bottom: 2rem;
}

.contact-section {
    display: flex;
    width: 100%;
    justify-content: center; /* center icons horizontally */
    align-items: center;     /* center icons vertically within the section */
    gap: 0.75rem;
    margin-top: 1rem;
}

.contact-section h3 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 1rem;
}

.social-links {
    /* display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem; */
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: nowrap;
    margin-bottom: 1rem;
    /* allow horizontal scroll if viewport is too small */
    overflow-x: auto;
}

.social-link, .email-link {
    /* display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #555;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 1rem; */

    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 8px;
    color: #c6d6ea;
    text-decoration: none;
    background: transparent;
    transition: color 0.2s ease, background 0.2s ease;
    font-size: 0; /* hide any accidental text nodes so only icon shows */

}

.social-link:hover, .email-link:hover {
    /* color: #1976d2; */
    color: #fff;
    background: rgba(99,146,255,0.95);
}

.icon {
    width: 24px;
    height: 24px;
    display: block;
    fill: currentColor;
}

/* Education and Experience Sections */
.info-section {
    margin-top: 0.5rem;
    background: transparent;
    border-radius: 15px;
    box-shadow: none;
    padding: 1rem;
}

.section-title {
    font-size: 2rem;
    color: #dedada;
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 0.5px solid #7fb3ff;
}

.section-icon {
    width: 32px;
    height: 32px;
    color: #7fb3ff;
}

.timeline {
    display: grid;
    gap: 1rem;
}

.timeline-item {
    background: transparent;
    border-radius: 8px;
    padding: 2rem;
    border-left: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.timeline-item:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(127, 179, 255, 0.15);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1.5rem;
}

.timeline-left {
    flex: 1;
}

.timeline-content h4 {
    font-size: 1.4rem;
    color: #dedada;
    font-weight: 700;
    margin: 0 0 0.75rem 0;
    line-height: 1.3;
}

.timeline-date {
    background: transparent;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    display: inline-block;
    box-shadow: none;
}

.timeline-content h5,
.timeline-left h5 {
    font-size: 1.1rem;
    font-style: italic;
    font-weight: 500;
    margin: 0 0 1rem 0;
}

.timeline-item h5 a,
.timeline-left h5 a,
.timeline-left h5 a:link,
.timeline-left h5 a:visited,
.timeline-left h5 a:hover,
.timeline-left h5 a:active,
.timeline-left h5 a:focus {
    color: #7fb3ff;
    text-decoration: none !important;
    border-bottom: none !important;
    transition: all 0.3s ease;
}

.timeline-content h5 a,
.timeline-content h5 a:link,
.timeline-content h5 a:visited,
.timeline-content h5 a:hover,
.timeline-content h5 a:active,
.timeline-content h5 a:focus {
    color: #7fb3ff;
    text-decoration: none;
    border-bottom: none;
    transition: all 0.3s ease;
}

.timeline-content p {
    color: #cbdcf0;
    line-height: 1.8;
    margin: 0;
    font-size: 1rem;
}

.timeline-content ul {
    padding-left: 2rem;
    margin: 0.5rem 0;
    margin-bottom: 1rem;
}

.timeline-content li {
    color: #cbdcf0;
    line-height: 1.8;
    margin: 0.25rem 0;
    font-size: 1rem;
}

/* Footer */
footer {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    background: radial-gradient(1200px 600px at 10% 10%, #071024 0%, transparent 15%),
                radial-gradient(1000px 500px at 90% 90%, #0b2236 0%, transparent 15%),
                linear-gradient(180deg, #071024 0%, #0b1220 60%);
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
    box-shadow: none;
}

footer p {
    color: #9fb0c9;
    margin: 0;
    font-size: 0.9rem;
}

/* Vertical Timeline for Other Experiences */
.vertical-timeline {
    position: relative;
    padding-left: 0;
}

.vertical-timeline::before {
    content: '';
    position: absolute;
    left: 100px;
    top: 0;
    bottom: 0;
    width: 1.5px;
    background: linear-gradient(to bottom, #1976d2, #64b5f6);
}

.vertical-timeline-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    position: relative;
}

.vertical-timeline-item::before {
    content: '';
    position: absolute;
    left: 90px;
    top: 30px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #1976d2;
    border: 2px solid white;
    box-shadow: 0 0 0 3px #1976d2;
    z-index: 1;
}

.vertical-timeline-date {
    min-width: 100px;
    font-weight: 600;
    color: #1976d2;
    font-size: 1rem;
    padding-top: 0.3rem;
    text-align: right;
    flex-shrink: 0;
}

.vertical-timeline-content {
    flex: 1;
    background: transparent;
    padding: 0.5rem;
    border-radius: 2px;
    border-left: none;
    margin-left: 2rem;
}

.vertical-timeline-content h5 {
    font-size: 1.2rem;
    color: #dedada;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.vertical-timeline-content p {
    color: #cbdcf0;
    line-height: 1.7;
    margin: 0;
    font-size: 0.95rem;
}

.vertical-timeline-content-organization {
    /* make italic */
    font-style: italic;
}

/* Blog Page */
.blog-grid {
    display: grid;
    gap: 2rem;
}

.blog-card {
    background: transparent;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.blog-card h2 {
    font-size: 1.6rem;
    color: #dedada;
    margin-bottom: 0.5rem;
}

.blog-date {
    color: #9fb0c9;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.blog-excerpt {
    color: #cbdcf0;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.read-more {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #7fb3ff;
    font-weight: 500;
}

/* Projects Page */
.page-title {
    font-size: 2.5rem;
    color: #c6d6ea;
    margin-bottom: 1rem;
}

.proff-link {
    color: #7fb3ff;
    text-decoration: none;
    border-bottom: none;
    transition: all 0.3s ease;
}

.project-description ul {
    margin-left: 2rem;
}

.projects-grid {
    display: grid;
    gap: 1rem;
}

.project-card {
    background: transparent;
    border-radius: 6px;
    padding: 0.5rem;
    box-shadow: 0 4px 15px rgba(229, 216, 216, 0.1);
    margin-bottom: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: none;
}

.project-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.project-header h2 {
    font-size: 1.6rem;
    color: #dedada;
    flex: 1;
}

.badge {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge.research {
    background: #e3f2fd;
    color: #1976d2;
}

.badge.project {
    background: #f3e5f5;
    color: #7b1fa2;
}

.authors {
    color: #cbdcf0;
    font-style: italic;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.description {
    color: #cbdcf0;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.project-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.btn-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #7fb3ff;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.btn-link:hover {
    color: #fff;
    background: rgba(99,146,255,0.95);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }

    .profile-image {
        flex: 0 0 auto;
    }

    .profile-image img {
        width: 200px;
        height: 200px;
    }

    .profile-info h1 {
        font-size: 2rem;
    }

    .profile-info h2 {
        font-size: 1.1rem;
    }

    .social-links {
        flex-direction: column;
        align-items: center;
    }

    .nav-menu {
        gap: 1rem;
    }

    .nav-link {
        padding: 0.3rem 0.6rem;
        font-size: 0.9rem;
    }

    .project-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .blog-post article {
        padding: 2rem 1.5rem;
    }

    .blog-post h1 {
        font-size: 2rem;
    }

    .blog-content h2 {
        font-size: 1.5rem;
    }

    .blog-content pre {
        padding: 1rem;
        font-size: 0.85rem;
    }
}

