:root {
    --primary: #FFF5E6;
    --secondary: #7E8A97;
    --accent: #FF671F;
    --light-saffron: #FFF5E6;
    --dark: #333333;
    --text: #333333;
    --max-width: 1200px;
    --header-height: 80px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--light-saffron);
    background-image: url('../maam_bg_1.jpeg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 245, 230, 0.85);
    z-index: -1;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background-color: transparent;
    color: var(--text);
    padding: 25px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.4s ease;
}

header.scrolled {
    background-color: var(--primary);
    padding: 15px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: all 0.3s;
}

.logo a {
    color: var(--text);
    text-decoration: none;
}

.main-nav {
    display: flex;
    gap: 25px;
}

.main-nav a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s;
}

.main-nav a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent);
    transition: width 0.3s;
}

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

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
}

.hero {
    height: 100vh;
    min-height: 700px;
    background-image: url('../maam_bg_1.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(255, 245, 230, 0.75) 0%,
        rgba(255, 245, 230, 0.65) 50%,
        rgba(255, 103, 31, 0.15) 100%
    );
    z-index: 1;
}

.hero-content h2{
    font-size: 40px !important;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        ellipse at center,
        transparent 0%,
        rgba(51, 51, 51, 0.05) 100%
    );
    z-index: 1;
}

.hero-content {
    max-width: 900px;
    padding: 0 20px;
    text-align: center;
    position: relative;
    z-index: 3;
    animation: heroFadeIn 1.2s ease-out forwards;
}

.hero h1 {
    font-size: 3.8rem;
    margin-bottom: 25px;
    font-weight: 900;
    line-height: 1.2;
    color: var(--text);
    text-shadow: 2px 2px 8px rgba(255, 255, 255, 0.8);
    letter-spacing: -0.5px;
    animation: slideInDown 0.8s ease-out 0.3s both;
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--text);
    font-weight: 600;
    line-height: 1.6;
    text-shadow: 1px 1px 4px rgba(255, 255, 255, 0.6);
    animation: slideInUp 0.8s ease-out 0.5s both;
}

.hero p:last-of-type {
    font-size: 1.25rem;
    margin-bottom: 35px;
    font-weight: 500;
    opacity: 0.95;
    animation: slideInUp 0.8s ease-out 0.7s both;
}

.hero .btn {
    margin-top: 15px;
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent) 0%, #E55A1A 100%);
    color: white;
    border: none;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(255, 103, 31, 0.35);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: slideInUp 0.8s ease-out 0.9s both;
    position: relative;
    overflow: hidden;
}

.hero .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.hero .btn:hover::before {
    left: 100%;
}

.hero .btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 35px rgba(255, 103, 31, 0.45);
}

.hero .btn:active {
    transform: translateY(-2px) scale(1.02);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    font-size: 2.2rem;
    color: var(--accent);
    filter: drop-shadow(0 2px 4px rgba(255, 103, 31, 0.3));
    transition: all 0.3s ease;
}

.scroll-indicator:hover i {
    color: #E55A1A;
    transform: scale(1.1);
}

.page-hero {
    height: 60vh;
    background-image: url('../maam_bg_1.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    margin-top: var(--header-height);
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 245, 230, 0.5);
    z-index: 1;
}

.page-hero-content {
    max-width: 800px;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.page-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--text);
}

.about-content {
    display: flex;
    align-items: flex-start;
    gap: 80px;
    opacity: 0;
    transform: translateY(80px);
    transition: all 0.8s ease;
    flex-wrap: nowrap;
}

.about-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.about-image {
    flex: 0 0 320px;
    text-align: center;
    width: 100%;
    position: relative;
}

.about-image:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid var(--accent);
    top: 20px;
    left: 20px;
    z-index: -1;
    border-radius: 8px;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    transition: transform 0.3s ease;
}

.about-image img:hover {
    transform: scale(1.03);
}

.about-text {
    flex: 2;
    text-align: justify;
    line-height: 1.8;
    font-size: 1.1rem;
    color: var(--text);
    max-width: 100%;
}

.about-text h3 {
    color: var(--accent);
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.about-text p {
    margin-bottom: 40px;
    text-align: justify;
    font-size: 1.1rem;
    color: var(--text);
}

.section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    color: var(--text);
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.section-title.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title:after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background-color: var(--accent);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

.content-card {
    background-color: rgba(255, 255, 255, 0.5);
    padding: 40px;
    border-radius: 8px;
    text-align: justify;
    margin-bottom: 40px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.content-card h3 {
    color: var(--accent);
    margin-bottom: 20px;
    text-align: justify;
    font-size: 1.8rem;
}

.highlights {
    background-color: var(--primary);
    color: var(--text);
    position: relative;
}

.highlights .section-title {
    color: var(--text);
}

.highlights .section-title:after {
    background-color: var(--accent);
}

.highlight-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.highlight-cards.visible {
    opacity: 1;
    transform: translateY(0);
}

.highlight-card {
    background-color: rgba(255,255,255,0.5);
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.highlight-card:hover {
    transform: translateY(-10px);
    background-color: rgba(255,255,255,0.7);
}

.highlight-card i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--accent);
}

.highlight-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.publications-list {
    max-width: 800px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.publications-list.visible {
    opacity: 1;
    transform: translateY(0);
}

.publication-item {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(51, 51, 51, 0.2);
    transition: transform 0.3s ease;
}

.publication-item:hover {
    transform: translateX(10px);
}

.publication-item:last-child {
    border-bottom: none;
}

.publication-item h3 {
    color: var(--text);
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.publication-item .year {
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 10px;
    display: inline-block;
    padding: 5px 15px;
    background-color: rgba(255, 103, 31, 0.1);
    border-radius: 20px;
}

.publication-item p {
    color: var(--text);
}

.contact-content {
    display: flex;
    gap: 50px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.contact-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    color: var(--accent);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.contact-info p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text);
}

.contact-details {
    margin-top: 30px;
}

.contact-detail {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.contact-detail i {
    width: 40px;
    height: 40px;
    background-color: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.contact-detail span {
    color: var(--text);
}

.contact-form {
    flex: 2;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--text);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    transition: border-color 0.3s;
    color: var(--text);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    outline: none;
}

.btn {
    display: inline-block;
    background-color: var(--accent);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    text-decoration: none;
}

.btn:hover {
    background-color: #E55A1A;
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
}

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

footer {
    background-color: var(--primary);
    color: var(--text);
    padding: 70px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

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

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

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: var(--text);
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(51, 51, 51, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s, transform 0.3s;
}

.social-links a:hover {
    background-color: var(--accent);
    transform: translateY(-3px);
    color: white;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(51, 51, 51, 0.1);
    color: var(--text);
}

.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.quick-link-card {
    background: rgba(255, 255, 255, 0.5);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: transform 0.3s;
    text-decoration: none;
    color: var(--text);
}

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

.quick-link-card i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.timeline-item {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(51, 51, 51, 0.1);
}

.timeline-item:last-child {
    border-bottom: none;
}

.timeline-item .year {
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 10px;
    display: inline-block;
    padding: 5px 15px;
    background-color: rgba(255, 103, 31, 0.1);
    border-radius: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.stat-card {
    text-align: center;
    padding: 25px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 10px;
}

.highlight-box {
    background: linear-gradient(135deg, rgba(255, 103, 31, 0.1), rgba(255, 245, 230, 0.3));
    border-left: 4px solid var(--accent);
    padding: 20px;
    text-align: justify;
    margin: 30px 0;
    border-radius: 0 8px 8px 0;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.data-table th {
    background-color: var(--accent);
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.data-table td {
    padding: 15px;
    border-bottom: 1px solid rgba(51, 51, 51, 0.1);
}

.data-table tr:last-child td {
    border-bottom: none;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-10px) translateX(-50%);
    }
    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

@media (min-width: 1025px) {
    .hero::before {
        background: linear-gradient(
            135deg,
            rgba(255, 245, 230, 0.65) 0%,
            rgba(255, 245, 230, 0.55) 50%,
            rgba(255, 103, 31, 0.12) 100%
        );
    }
    
    .page-hero::before {
        background-color: rgba(255, 245, 230, 0.45);
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .hero {
        min-height: 650px;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero p {
        font-size: 1.25rem;
    }
    
    .hero p:last-of-type {
        font-size: 1.15rem;
    }
    
    .hero {
        background-attachment: scroll;
    }
    
    .page-hero {
        background-attachment: scroll;
    }
    
    .page-hero h1 {
        font-size: 2.5rem;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .contact-content {
        flex-direction: column;
    }
    
    .highlight-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        position: relative;
        z-index: 1001;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--primary);
        flex-direction: column;
        padding: 80px 20px 20px;
        gap: 15px;
        transform: translateX(-100%);
        opacity: 0;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
        z-index: 999;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .main-nav.active {
        transform: translateX(0);
        opacity: 1;
    }
    
    .main-nav a {
        font-size: 1.5rem;
        padding: 15px 20px;
        border-bottom: 1px solid rgba(51, 51, 51, 0.1);
        width: 100%;
        display: block;
    }
    
    .main-nav a:last-child {
        border-bottom: none;
    }
    
    .main-nav a:after {
        display: none;
    }
    
    header {
        padding: 15px 0;
    }
    
    header.scrolled {
        padding: 10px 0;
    }
    
    .hero {
        height: 60vh !important;
        min-height: 600px;
        background-attachment: scroll;
    }
    
    .hero h1 {
        font-size: 2.3rem;
        line-height: 1.25;
        margin-bottom: 18px;
    }
    
    .hero p {
        font-size: 1.15rem;
        margin-bottom: 12px;
    }
    
    .hero p:last-of-type {
        font-size: 1.05rem;
        margin-bottom: 25px;
    }
    
    .hero .btn {
        padding: 14px 32px;
        font-size: 1rem;
    }
    
    .hero-content {
        padding: 0 15px;
    }
    
    .page-hero {
        height: 40vh;
        min-height: 300px;
        background-attachment: scroll;
        margin-top: 70px;
    }
    
    .page-hero h1 {
        font-size: 2rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .content-card {
        padding: 25px 20px;
        margin-bottom: 30px;
    }
    
    .content-card h3 {
        font-size: 1.5rem;
    }
    
    .about-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .about-image:before {
        display: none;
    }
    
    .about-image img {
        max-width: 280px;
        margin: 0 auto;
        display: block;
    }
    
    .highlight-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .highlight-card {
        padding: 30px 20px;
    }
    
    .quick-links {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .quick-link-card {
        padding: 25px 20px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .stat-card {
        padding: 20px 15px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .contact-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-links {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 15px;
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .copyright {
        font-size: 0.9rem;
        padding-top: 20px;
    }
    
    .data-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .publication-item h3 {
        font-size: 1.2rem;
    }
    
    .form-group input,
    .form-group textarea {
        font-size: 16px;
        padding: 14px 12px;
    }
    
    body {
        overflow-x: hidden;
        width: 100%;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .btn {
        padding: 15px 25px;
        font-size: 1rem;
        min-height: 48px;
        min-width: 140px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    .social-links a {
        width: 45px;
        height: 45px;
    }
    
    .about-image img:hover {
        transform: none;
    }
    
    .content-card:hover {
        transform: none;
    }
    
    .highlight-card:hover {
        transform: none;
        background-color: rgba(255,255,255,0.5);
    }
    
    .quick-link-card:hover {
        transform: none;
    }
    
    .scroll-indicator {
        bottom: 25px;
    }
    
    .scroll-indicator i {
        font-size: 2rem;
    }
}

/* Mobile-specific hero background and touch improvements
   Place the mobile hero image at `images/hero-mobile-bg.jpg` */
@media (max-width: 768px) {
    .hero {
        background-image: url('../images/maam_bg.jpeg');
        background-size: cover;
        background-position: center;
        background-attachment: scroll;
    }

    .touch-active {
        opacity: 0.8;
        transform: scale(0.98) !important;
        transition: all 0.1s ease;
    }

    /* Fix for iOS tap highlight */
    * {
        -webkit-tap-highlight-color: rgba(0,0,0,0.1);
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.9rem;
    }
    
    .hero p {
        font-size: 1.05rem;
    }
    
    .hero p:last-of-type {
        font-size: 0.95rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}

@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        height: 140vh;
        min-height: auto;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .hero p:last-of-type {
        font-size: 1rem;
    }
    
    .hero-content {
        padding-top: 60px;
    }
}

@media (max-width: 768px) {
    input,
    textarea,
    select {
        font-size: 16px;
    }
    
    .hero,
    .page-hero {
        height: calc(var(--vh, 1vh) * 100);
    }
}

@supports (-webkit-touch-callout: none) {
    .hero,
    .page-hero {
        height: -webkit-fill-available;
    }
}

.profile-stats {
    display: grid;
    grid-template-columns: 2fr;
    gap: 20px;
}

@media (min-width: 700px) {
    .profile-stats {
        grid-template-columns: repeat(5, 1fr);
        align-items: stretch;
    }
}

.career-timeline .timeline-item {
    position: relative;
    padding-left: 35px;
    margin-bottom: 0;
    padding-bottom: 18px;
}

.career-timeline .timeline-item::before {
    content: "";
    position: absolute;
    left: -2px;
    top: 2px;
    width: 14px;
    height: 14px;
    background: white;
    border: 3px solid var(--accent);
    border-radius: 50%;
    z-index: 2;
}

.career-timeline .timeline-item::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 18px;
    width: 3px;
    height: 100%;
    background: var(--accent);
    z-index: 1;
}

.career-timeline .timeline-item:last-child::after {
    display: none;
}

.filter-buttons {
    display: flex;
    justify-content: flex-start;
    gap: 18px;
    margin: 25px 0 35px 0;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 14px 32px;
    border-radius: 14px;
    font-size: 1.05rem;
    font-weight: 800;
    border: 2px solid var(--accent);
    color: var(--accent);
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: 0.25s ease-in-out;
}

.filter-btn:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px) scale(1.02);
}

.filter-btn.active {
    background: var(--accent);
    color: white;
    box-shadow: 0 0 0 3px rgba(255, 103, 31, 0.25);
    transform: translateY(-2px);
}

@media(max-width: 600px){
    .filter-btn{
        width: 100%;
        text-align: center;
    }
}

.milestone-thread{
  position: relative;
  margin-left: 25px;
  padding-left: 25px;
}

.milestone-thread::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  width:4px;
  height:100%;
  background: linear-gradient(180deg, #ffb27a, #ff6a00);
  border-radius:3px;
}

.milestone{
  position:relative;
  margin-bottom:18px;
  padding:14px 16px 14px 18px;
  background:#ffffffee;
  border-radius:14px;
  box-shadow:0 10px 22px rgba(0,0,0,.06);
  border-left:5px solid var(--accent);
}

.milestone::before{
  content:"";
  position:absolute;
  left:-34px;
  top:18px;
  width:14px;
  height:14px;
  border-radius:50%;
  background:#ff6a00;
  border:3px solid #fff;
  box-shadow:0 0 0 3px rgba(255,106,0,0.25);
}

.milestone:hover{
  transform:translateX(4px);
  transition:.2s;
}

.membership-item{
    background: rgba(255,103,31,.05);
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255,103,31,.25);
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.45;
    letter-spacing: 0.2px;
    color: #222;
    transition: .2s ease-in-out;
}

.membership-item em,
.membership-item strong{
    font-weight: 800;
}

.membership-item:hover{
  transform: translateY(-3px) scale(1.01);
  box-shadow:0 12px 25px rgba(0,0,0,.08);
  border-color: rgba(255,103,31,.6);
}

.recognition-list{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  align-items: stretch;
}

.recognition-item{
  background: #ffffffdd;
  border-radius: 14px;
  padding: 18px 16px;
  box-shadow: 0 10px 22px rgba(0,0,0,.06);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  min-height: 140px;
}

.achievement-count{
  font-size: 2.3rem;
  font-weight: 900;
  margin-bottom: 6px;
}

.recognition-icon{
  font-size: 28px;
  margin-bottom: 6px;
}

.stat-label{
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
}

.stat-card{
  transition: .25s ease-in-out;
}

.stat-card:hover{
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 14px 28px rgba(0,0,0,.12);
}

.content-card{
  transition: .25s ease-in-out;
}

.lecture-item,
.conference-card{
  transition: .25s ease-in-out;
}

.lecture-item:hover,
.conference-card:hover{
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 16px 32px rgba(0,0,0,.10);
  border-color: rgba(255,103,31,.6);
}

.lecture-tab{
  cursor: pointer;
  transition: .2s ease-in-out;
}

.lecture-tab:hover{
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(0,0,0,.12);
}

.hover-card,
.content-card,
.stat-card,
.position-card,
.publication-item,
.project-card,
.award-card,
.fellowship-item,
.membership-item,
.quick-link-card,
.highlight-card,
.timeline-item,
.lecture-item,
.conference-card {
    transition: .25s ease-in-out;
}

.hover-card:hover,
.content-card:hover,
.stat-card:hover,
.position-card:hover,
.publication-item:hover,
.project-card:hover,
.award-card:hover,
.fellowship-item:hover,
.membership-item:hover,
.quick-link-card:hover,
.highlight-card:hover,
.timeline-item:hover,
.lecture-item:hover,
.conference-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 16px 32px rgba(0,0,0,.10);
}

@media (max-width: 1024px) {
    p,
    .about-text,
    .about-text p,
    .content-card,
    .content-card p,
    .highlight-box,
    .publication-item p,
    .contact-info p,
    .timeline-item,
    .membership-item,
    .lecture-item,
    .conference-card,
    .stat-label {
        text-align: justify;
        text-justify: inter-word;
        word-break: normal;
        overflow-wrap: break-word;
        hyphens: auto;
        justify-content: center;
        align-items: center;
        display: flex;
        flex-direction: column;
    }

    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    .section-title,
    .content-card h3,
    .about-text h3,
    .publication-item h3,
    .contact-info h3 {
        text-align: left;
    }

    

    .hero h1,
    .hero p,
    .page-hero h1,
    .section-title {
        text-align: center;
    }

    p {
        line-height: 1.75;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    p {
        font-size: 1rem;
    }
    .hero-content h2, .quick-link-card h3, .footer-logo{
        text-align: center !important;
    }
    .hero-content h2 {
    font-size: 20px !important;
}
}