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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

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

/* Typography */
h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    color: #1e3a8a;
}

h2 {
    font-size: 2rem;
    color: #1e40af;
}

h3 {
    font-size: 1.5rem;
    color: #1e40af;
}

h4 {
    font-size: 1.25rem;
    color: #374151;
}

p {
    margin-bottom: 1rem;
    color: #6b7280;
    font-size: 1.0rem;
}

/* Navigation */
.navbar {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.nav-logo h3 {
    color: #1e3a8a;
    margin: 0;
    font-size: 1.5rem;
}

.nav-logo span {
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 400;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    position: relative;
    z-index: 10;
}

.nav-link {
    text-decoration: none;
    color: #374151;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    font-size: 1.0rem;
    background: linear-gradient(135deg, #faf9ff, #f5f3ff);
}

.nav-link:hover,
.nav-link.active {
    color: #1e3a8a;
    background-color: #f3f4f6;
}

/* Dropdown */
.dropdown {
    position: relative;
    z-index: 9999;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 8px;
    z-index: 10000;
    top: 100%;
    right: 0;
    border: 1px solid #e5e7eb;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: #374151;
    padding: 12px 16px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.dropdown-content a:hover {
    background-color: #f3f4f6;
}

.dropdown-content a:first-child {
    border-radius: 8px 8px 0 0;
}

.dropdown-content a:last-child {
    border-radius: 0 0 8px 8px;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #1e3a8a;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 120px 0 80px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    width: 100%;
    overflow-x: hidden;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

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

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.hero-text h2 {
    color: #1e3a8a;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #6366f1;
    font-weight: 500;
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.0rem;
    color: #6b7280;
    margin-bottom: 2rem;
    text-align: justify;
}

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

/* Research Areas in Hero Section */
.research-areas {
    margin: 1rem 0;
}

.research-areas h3 {
    color: #1e3a8a;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.areas-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

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

.areas-list li {
    padding: 0.2rem 0;
    color: #6b7280;
    font-size: 1.0rem;
    position: relative;
}

/* Education and Certification in Hero Section */
.education-certification {
    margin: 1rem 0;
}

.edu-cert-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.education-section h3,
.certification-section h3 {
    color: #1e3a8a;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.edu-item,
.cert-item {
    margin-bottom: 0.5rem;
    padding-bottom: 0.1rem;
}

.edu-item strong,
.cert-item strong {
    color: #374151;
    font-size: 1.0rem;
    display: block;
}

.edu-item p,
.cert-item p {
    color: #6b7280;
    font-size: 1.0rem;
    margin: 0.15rem 0 0 0;
    font-style: italic;
}

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

.btn-primary {
    background-color: #1e3a8a;
    color: white;
}

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

.btn-secondary {
    background-color: transparent;
    color: #1e3a8a;
    border: 2px solid #1e3a8a;
}

.btn-secondary:hover {
    background-color: #1e3a8a;
    color: white;
    transform: translateY(-2px);
}

.hero-image {
    text-align: center;
}

.profile-photo {
    background: white;
    border-radius: 20px;
    padding: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: inline-block;
}

.profile-img {
    width: 450px;
    height: 400;
    border-radius: 15px;
    object-fit: cover;
    display: block;
    border: 3px solid #e5e7eb;
}

.image-placeholder {
    background: white;
    border-radius: 20px;
    padding: 3rem 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 3px dashed #d1d5db;
}

.image-placeholder i {
    font-size: 4rem;
    color: #9ca3af;
    margin-bottom: 1rem;
}

.image-placeholder p {
    color: #6b7280;
    font-weight: 500;
}

.image-placeholder small {
    color: #9ca3af;
    font-size: 0.8rem;
}

/* Sections */
.section {
    padding: 80px 0;
}

.bg-light {
    background-color: #f9fafb;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #1e3a8a, #6366f1);
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.content-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.content-card i {
    font-size: 2.5rem;
    color: #6366f1;
    margin-bottom: 1rem;
}

/* Affiliation List Styling */
.affiliation-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.affiliation-list li {
    padding: 0.5rem 0;
    color: #6b7280;
    font-size: 1.0rem;
    border-bottom: 1px solid #f3f4f6;
    position: relative;
    padding-left: 1.5rem;
}

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

.affiliation-list li::before {
    content: '▸';
    color: #6366f1;
    position: absolute;
    left: 0;
    top: 0.5rem;
    font-weight: bold;
}

/* Timeline */
.timeline {
    position: relative;
    margin: 0 auto;
    max-width: 1200px;
    padding: 2rem 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background: linear-gradient(180deg, #1e3a8a, #6366f1);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
   
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    margin-bottom: 0.1rem;
    display: flex;
    justify-content: flex-end;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: #1e3a8a;
    border: 4px solid #ffffff;
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(even) {
    left: 50%;
    justify-content: flex-start;
}

.timeline-item:nth-child(even)::after {
    left: -10px;
}

.timeline-content {
    background: #fff;
    padding: 1rem 1.2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
    font-size: 1.0rem;
    display: inline-block;
    min-width: auto;
    width: auto;
    max-width: 600px;
    max-height: 150px;
    overflow: hidden;
}

.content-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sub-container {
    background: #f8f9fa;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    border-left: 3px solid #6366f1;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 0.3rem;
    transition: all 0.3s ease;
}

.sub-container:hover {
    background: #e3f2fd;
    transform: translateX(3px);
}

.sub-container p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.3;
}

.timeline-date {
    color: #6366f1;
    font-weight: 600;
    font-size: 1.0rem;
}

/* Awards Section Specific Styles */
.awards-content {
    background: #fff;
    padding: 1.5rem 1.2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
    font-size: 1.0rem;
    display: inline-block;
    min-width: auto;
    width: auto;
    max-width: 850px;
    min-height: auto;
    max-height: none;
    overflow: visible;
}

/* Publications */
.publications-container {
    max-width: 100%;
    margin: 0;
    width: 100%;
}

.publication-category {
    margin-bottom: 3rem;
}

.publication-category h3 {
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.publication-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
    border-left: 4px solid #6366f1;
}

.publication-item h4 {
    color: #1e3a8a;
    margin-bottom: 0.5rem;
}

.publication-authors {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.publication-journal {
    color: #6366f1;
    font-style: italic;
    margin-bottom: 0.5rem;
}

.publication-status {
    color: #059669;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.publication-abstract {
    color: #6b7280;
    font-size: 1.0rem;
}

/* Publication Subsections */
.publication-subsection {
    margin-top: 3rem;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.subsection-title {
    color: #1e3a8a;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0.5rem;
}

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

.publication-list li {
    margin-bottom: 1rem;
    color: #6b7280;
    font-size: 1.0rem;
    line-height: 1.6;
    text-align: left;
}

.publication-list li:last-child {
    margin-bottom: 0;
}

/* Research Section */
.research-content {
    max-width: 1000px;
    margin: 0 auto;
}

.research-overview {
    text-align: center;
    margin-bottom: 3rem;
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.research-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.research-card i {
    font-size: 2.5rem;
    color: #6366f1;
    margin-bottom: 1rem;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

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

.service-list {
    list-style: none;
}

.service-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e5e7eb;
    color: #6b7280;
    font-size: 1.0rem;
}

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

.service-list li::before {
    content: '▸';
    color: #6366f1;
    margin-right: 0.5rem;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: #6366f1;
    margin-top: 0.25rem;
}

.contact-item h4 {
    margin-bottom: 0.5rem;
}

.contact-item p {
    margin: 0;
    font-size: 1.0rem;
}

.contact-item a {
    color: #6366f1;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* Contact Form */
.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #6366f1;
}

/* Footer */
.footer {
    background: #1f2937;
    color: white;
    padding: 2rem 0 1rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('menu_combined_scroll_bg.png');
    background-repeat: repeat-x;
    background-size: auto 100%;
    opacity: 0;
    animation: fadeSlideBackground 8s ease-in-out infinite;
    z-index: 1;
}

@keyframes fadeSlideBackground {
    0% {
        opacity: 0;
        transform: translateX(-100%);
    }
    25% {
        opacity: 0.3;
        transform: translateX(0%);
    }
    50% {
        opacity: 0.2;
        transform: translateX(0%);
    }
    75% {
        opacity: 0.3;
        transform: translateX(0%);
    }
    100% {
        opacity: 0;
        transform: translateX(100%);
    }
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    position: relative;
    z-index: 10;
}

.footer-left h4 {
    color: white;
    margin-bottom: 0.5rem;
}

.footer-left p {
    color: #9ca3af;
    margin: 0;
    font-size: 1.0rem;
}

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

.social-links a {
    color: #9ca3af;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #6366f1;
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #374151;
    position: relative;
    z-index: 10;
}

.footer-bottom p {
    color: #9ca3af;
    margin: 0;
    font-size: 1.0rem;
}

/* Content Note */
.content-note {
    background: #fef3c7;
    color: #92400e;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #f59e0b;
    margin-top: 2rem;
    font-style: italic;
    font-size: 1.0rem;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .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;
    }

    .hamburger {
        display: flex;
    }

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

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

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

    .hero-text h1 {
        font-size: 2rem;
    }

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

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item::after {
        left: 21px;
    }

    .timeline-item:nth-child(even) {
        left: 0%;
    }

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

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

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

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

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

@media screen and (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    .hero {
        padding: 80px 0 50px;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    
    .hero-container {
        padding: 0 10px;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
        max-width: 100%;
        overflow: hidden;
    }
    
    .hero-text {
        max-width: 100%;
        padding: 0 5px;
    }
    
    .profile-img {
        width: 250px !important;
        height: 250px !important;
        max-width: 85vw;
        object-fit: cover;
    }
    
    .profile-photo {
        max-width: 100%;
        padding: 0.5rem;
        margin: 0 auto;
        display: block;
    }

    .section {
        padding: 50px 0;
    }

    .hero-text h1 {
        font-size: 1.5rem;
    }
    
    .hero-text h2 {
        font-size: 1.3rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
        line-height: 1.5;
        padding: 0 5px;
    }

    .btn {
        padding: 8px 16px;
        font-size: 0.9rem;
        margin: 0.3rem;
    }
    
    .areas-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .edu-cert-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Faded Image Effects */
.faded-image {
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.faded-image:hover {
    opacity: 1;
}

.faded-light {
    opacity: 0.8;
    filter: brightness(1.1) contrast(0.9);
}

.faded-medium {
    opacity: 0.6;
    filter: brightness(1.05) contrast(0.85);
}

.faded-heavy {
    opacity: 0.4;
    filter: brightness(1.1) contrast(0.8);
}

.fade-overlay {
    position: relative;
}

.fade-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.3), rgba(255,255,255,0.1));
    pointer-events: none;
}
