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

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #7c3aed;
    --dark: #1e293b;
    --light: #f8fafc;
    --gray: #94a3b8;
    --light-gray: #e2e8f0;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    
    --transition: all 0.3s ease;
    --border-radius: 8px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--dark);
}

.section-subtitle {
    font-size: 1.25rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--gray);
}

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

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: var(--shadow);
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-secondary:hover {
    background-color: #6d28d9;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Header/Hero Section */
.hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    color: white;
    padding: 0;
    position: relative;
    overflow: hidden;
}

.hero-top {
    background: linear-gradient(90deg, #0f172a 0%, #1e3a8a 100%);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-main {
    padding: 2rem 0;
}

.hero::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></svg>');
    opacity: 0.3;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.nav-brand h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

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

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-menu a:hover {
    color: #dbeafe;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #dbeafe;
    transition: var(--transition);
}

.nav-menu a:hover::after {
    width: 100%;
}

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

.bar {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: var(--transition);
}

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

.hero-text h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: #dbeafe;
}

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

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

.hero-image {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.profile-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    border: 5px solid white;
}

.placeholder-image {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
}

.placeholder-image i {
    margin-bottom: 1rem;
    opacity: 0.7;
}

.research-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-top: 1rem;
}

.gallery-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

/* About Section */
.about-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

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

.fact {
    text-align: center;
    padding: 1.5rem;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.fact:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

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

.fact h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

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

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: var(--primary);
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    width: 100%;
}

/* Grid-based approach for better positioning */
.timeline-item {
    display: grid;
    grid-template-columns: 1fr max-content 1fr;
    column-gap: 1.5rem;
}

.timeline-item:nth-child(odd) .timeline-content {
    grid-column: 3;
    text-align: left;
}

.timeline-item:nth-child(even) .timeline-content {
    grid-column: 1;
    text-align: right;
}

.timeline-date {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
    grid-column: 1;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-date {
    grid-column: 3;
    text-align: left;
}

.timeline-content {
    background-color: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    position: relative;
}


.timeline-content h3 {
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.timeline-content h4 {
    color: var(--secondary);
    margin-bottom: 1rem;
}

.timeline-highlights {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
}

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

.highlight {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.green { background-color: #dcfce7; color: #166534; }
.blue { background-color: #dbeafe; color: #1e40af; }
.orange { background-color: #ffedd5; color: #c2410c; }
.purple { background-color: #e9d5ff; color: #7e22ce; }
.gray { background-color: #f3f4f6; color: #374151; }

/* Center element for timeline */
.timeline-center {
    grid-column: 2;
    grid-row: 1 / span 2;
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-center,
.timeline-item:nth-child(even) .timeline-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.qualification__rounder {
    display: inline-block;
    width: 13px;
    height: 13px;
    background-color: var(--primary);
    border-radius: 50%;
}

/* Research Pillars Section */
.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.research-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    transition: var(--transition);
}

.research-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.research-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.research-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.research-card p {
    margin-bottom: 1.5rem;
    color: var(--gray);
}

.research-highlights p {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Leadership Section */
.leadership-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.leadership-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.leadership-item p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--gray);
}

.leadership-diagram {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-top: 1rem;
}

.process-flow {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.process-step {
    background-color: var(--primary);
    color: white;
    padding: 1rem;
    border-radius: var(--border-radius);
    text-align: center;
    min-width: 120px;
    font-weight: 500;
}

.process-arrow {
    font-size: 1.5rem;
    color: var(--gray);
}

/* Publications & Patents Section */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.gallery-item {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.gallery-content {
    padding: 1.5rem;
}

.gallery-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--dark);
}

.gallery-content p {
    color: var(--gray);
    line-height: 1.6;
}

/* Technical Stack Section */
.stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stack-category {
    background-color: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.stack-category h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--dark);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--light-gray);
}

.stack-category ul {
    list-style: none;
}

.stack-category li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--light-gray);
}

.stack-category li:last-child {
    border-bottom: none;
}

/* Footer/Contact Section */
.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-info h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.footer-info p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--gray);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
}

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

.footer-links h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    text-decoration: none;
    color: var(--gray);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--light-gray);
    color: var(--gray);
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-image {
        order: -1;
    }
    
    .timeline::before {
        left: 31px;
    }
    
    .timeline-item {
        grid-template-columns: max-content 1fr !important;
        column-gap: 1.5rem !important;
    }
    
    .timeline-date {
        grid-column: 1 !important;
        grid-row: 1 !important;
        text-align: left !important;
        margin-bottom: 0 !important;
        margin-right: 1rem !important;
        color: white !important;
        background-color: var(--primary) !important;
        padding: 0.25rem 0.75rem !important;
        border-radius: 20px !important;
        font-weight: 600 !important;
        align-self: center !important;
    }
    
    .timeline-center {
        grid-column: 1 !important;
        grid-row: 2 !important;
        visibility: hidden !important;
    }
    
    .timeline-content {
        grid-column: 2 !important;
        grid-row: 1 / span 2 !important;
        text-align: left !important;
    }
    
    .timeline-highlights {
        justify-content: flex-start !important;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--dark);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        padding: 2rem 0;
        gap: 1rem;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .process-flow {
        flex-direction: column;
    }
    
    .process-arrow {
        transform: rotate(90deg);
    }
}

@media (max-width: 576px) {
    .section {
        padding: 3rem 0;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .key-facts {
        grid-template-columns: 1fr;
    }
    
    .gallery {
        grid-template-columns: 1fr;
    }
    
    .stack-grid {
        grid-template-columns: 1fr;
    }
}

/* AI Generated Image Note */
.ai-note {
    text-align: center;
    font-size: 0.8rem;
    color: #dbeafe;
    margin-top: 0.5rem;
    font-style: italic;
    opacity: 0.8;
}

/* AI Generated Website Footnote */
.ai-footnote {
    text-align: center;
    padding: 1rem;
    background-color: #f1f5f9;
    border-top: 1px solid #e2e8f0;
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 2rem;
}

.ai-footnote p {
    margin: 0;
    font-style: italic;
}
