:root {
    --primary-color: #1a1a2e;
    --secondary-color: #16213e;
    --accent-color: #0f3460;
    --highlight-color: #e94560;
    --text-color: #f0f0f0;
    --text-color-muted: #bbbbbb;
    --card-bg: #242440;
    --card-hover: #2a2a48;
    --border-color: #303050;
    --gradient-start: #1a1a2e;
    --gradient-end: #16213e;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--primary-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header and Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(26, 26, 46, 0.95);
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 10px 0;
    background-color: rgba(26, 26, 46, 0.98);
}

nav {
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
}

nav ul li {
    margin: 0 15px;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--highlight-color);
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
}

.nav-link:hover:after,
.nav-link.active:after {
    width: 100%;
}

.nav-link:hover, 
.nav-link.active {
    color: var(--highlight-color);
}

/* Main Content */
main {
    padding-top: 80px;
}

/* Hero Section */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(15, 52, 96, 0.3) 0%, rgba(26, 26, 46, 0) 70%);
    top: -25%;
    left: -25%;
    animation: pulse 15s infinite alternate;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    100% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* Hero Section - Updated to have image on left, text on right */
.hero-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 50px;
    z-index: 10;
    padding: 30px;
    max-width: 1200px;
}

.profile-pic {
    position: relative;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(233, 69, 96, 0.3);
    border: 4px solid var(--highlight-color);
    animation: profilePulse 3s infinite alternate;
}

@keyframes profilePulse {
    0% {
        box-shadow: 0 0 30px rgba(233, 69, 96, 0.3);
    }
    100% {
        box-shadow: 0 0 50px rgba(233, 69, 96, 0.5);
    }
}

.profile-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.profile-pic:hover img {
    transform: scale(1.05);
}

.hero-text {
    max-width: 600px;
}

.hero-text h1 {
    font-family: 'Raleway', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-color);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-text h2 {
    font-family: 'Raleway', sans-serif;
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 20px;
    color: var(--highlight-color);
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--text-color-muted);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--highlight-color);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(233, 69, 96, 0.3);
}

/* Particles for hero background */
.particle {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    pointer-events: none;
    animation: float 15s infinite alternate;
}

@keyframes float {
    0% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-20px) translateX(10px);
    }
    100% {
        transform: translateY(20px) translateX(-10px);
    }
}

/* Section Styles */
.section-container {
    padding: 100px 0;
    position: relative;
}

.section-container:nth-child(odd) {
    background-color: var(--secondary-color);
}

.section-container:nth-child(even) {
    background-color: var(--primary-color);
}

.section-title {
    font-family: 'Raleway', sans-serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    color: var(--text-color);
}

.section-title::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: var(--highlight-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.section-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* About Section */
#about .section-content p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-align: center;
}

/* Achievements Grid */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.achievement-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.achievement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    background-color: var(--card-hover);
}

.achievement-card i {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--highlight-color);
}

.achievement-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.achievement-card p {
    font-size: 0.95rem;
    color: var(--text-color-muted);
}

/* Skills Section */
.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-around;
}

.skill-category {
    flex: 1;
    min-width: 250px;
}

.skill-category h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--highlight-color);
    text-align: center;
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.skill-item {
    background-color: var(--card-bg);
    color: var(--text-color);
    padding: 10px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.skill-item:hover {
    background-color: var(--highlight-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(233, 69, 96, 0.2);
}

/* Experience Timeline */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--border-color);
    top: 0;
    bottom: 0;
    left: 20px;
    margin-left: -1px;
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    padding-left: 60px;
}

.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    left: 11px;
    background-color: var(--highlight-color);
    border-radius: 50%;
    z-index: 10;
}

.timeline-date {
    font-weight: 600;
    color: var(--highlight-color);
    margin-bottom: 10px;
}

.timeline-content {
    padding: 20px;
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    background-color: var(--card-hover);
}

.timeline-content h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.timeline-content ul {
    padding-left: 20px;
}

.timeline-content ul li {
    margin-bottom: 8px;
    color: var(--text-color-muted);
}

.load-more {
    text-align: center;
    padding-left: 0;
}

.load-more-btn {
    background-color: transparent;
    color: var(--highlight-color);
    border: 2px solid var(--highlight-color);
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    background-color: var(--highlight-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(233, 69, 96, 0.3);
}

/* Education Section */
.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.education-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    height: 100%;
}

.education-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    background-color: var(--card-hover);
}

.education-icon {
    font-size: 2rem;
    color: var(--highlight-color);
    margin-bottom: 15px;
}

.education-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.education-card h4 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: var(--highlight-color);
}

.education-card p {
    font-size: 0.9rem;
    color: var(--text-color-muted);
}

/* Contact Section - Updated for no form */
.contact-container {
    display: flex;
    flex-direction: column;
    max-width: 700px;
    margin: 0 auto;
}

.contact-info {
    width: 100%;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--highlight-color);
    margin-right: 15px;
    min-width: 40px;
    height: 40px;
    background-color: var(--card-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-item a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: var(--highlight-color);
}

.certifications, .publications {
    margin-top: 30px;
}

.certifications h3, .publications h3 {
    color: var(--highlight-color);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.certifications p, .publications p {
    margin-bottom: 8px;
    color: var(--text-color-muted);
}

/* Certification Grid */
.certification-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.certification-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    height: 100%;
}

.certification-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    background-color: var(--card-hover);
}

.certification-icon {
    font-size: 2rem;
    color: var(--highlight-color);
    margin-bottom: 15px;
}

.certification-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.certification-card p {
    font-size: 0.9rem;
    color: var(--text-color-muted);
}

/* Publications Styling */
.publication-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.publication-item {
    display: flex;
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.publication-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    background-color: var(--card-hover);
}

.publication-icon {
    font-size: 1.8rem;
    color: var(--highlight-color);
    margin-right: 20px;
    min-width: 40px;
    display: flex;
    align-items: flex-start;
}

.publication-content {
    flex: 1;
}

.publication-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.publication-authors {
    font-size: 0.95rem;
    color: var(--highlight-color);
    margin-bottom: 8px;
    font-style: italic;
}

.publication-journal {
    font-size: 1rem;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--text-color);
}

.publication-abstract {
    font-size: 0.9rem;
    color: var(--text-color-muted);
    line-height: 1.6;
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    padding: 30px 0;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-link {
    color: var(--text-color-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--highlight-color);
}

/* Scroll to Top */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--highlight-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(233, 69, 96, 0.3);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background-color: #d03a52;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(233, 69, 96, 0.4);
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-text h2 {
        font-size: 1.2rem;
    }
    
    .hero-content {
        padding: 20px;
    }
    
    .profile-pic {
        width: 200px;
        height: 200px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .timeline-content {
        padding: 15px;
    }
    
    nav ul li {
        margin: 5px 10px;
    }
    
    .nav-link {
        font-size: 0.9rem;
    }
    
    .skills-container {
        gap: 20px;
    }
    
    .publication-item {
        flex-direction: column;
    }
    
    .publication-icon {
        margin-bottom: 15px;
        margin-right: 0;
        justify-content: center;
    }
}

@media screen and (max-width: 480px) {
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-text h2 {
        font-size: 1rem;
    }
    
    .profile-pic {
        width: 150px;
        height: 150px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    nav {
        overflow-x: auto;
        justify-content: flex-start;
        padding: 15px 0;
    }
    
    nav ul {
        width: max-content;
    }
    
    nav ul li {
        margin: 0 8px;
    }
    
    .nav-link {
        font-size: 0.8rem;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}