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

body {
    font-family: 'Inter', sans-serif;
    background-color: #000000;
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
        url('saao.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: #e0e0e0;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    width: 100%;
}

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

header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
}

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

.nav-links a {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: #ffffff;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: #ffffff;
}

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

.hamburger span {
    width: 25px;
    height: 3px;
    background: #e0e0e0;
    margin: 3px 0;
    transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

main {
    margin-top: 120px;
    padding: 4rem 0;
    flex: 1;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 2rem;
    text-align: center;
}

.hero {
    text-align: center;
    padding: 6rem 0 4rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    text-align: center;
    width: 100%;
}

.hero .subtitle {
    font-size: 1.25rem;
    color: #cccccc;
    margin-bottom: 2rem;
    font-weight: 500;
    text-align: center;
    width: 100%;
}

.hero .description {
    font-size: 1.1rem;
    max-width: 1000px;
    margin: 0 auto 2rem;
    color: #e0e0e0;
    text-align: center;
    width: 100%;
}

.hero .description p {
    margin-bottom: 1.5rem !important;
    margin-top: 0 !important;
}

.hero .description p:last-child {
    margin-bottom: 0 !important;
}

.profile-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background-image: url('me.jpg');
    background-size: cover;
    background-position: center;
    margin: 0 auto 2rem;
    border: 2px solid #ffffff;
    align-self: center;
}

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

.project-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

.project-card h3,
.project-card h4 {
    color: #ffffff;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.resource-section {
    margin-bottom: 4rem;
}

.resource-section-title {
    color: #ffffff;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: left;
    font-weight: 600;
}

.page-intro {
    margin: 0 0 4rem 0;
    text-align: left;
}

.page-intro p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #e0e0e0;
}

.project-card.with-image {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.model-image {
    width: 200px;
    height: 150px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
}

.model-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .model-image img {
    transform: scale(1.05);
}

.model-content {
    flex: 1;
}

.model-card h4 {
    margin-bottom: 1rem;
}

.model-body {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.model-body .model-image {
    width: 320px;
    height: 240px;
    flex-shrink: 0;
}

.model-text {
    flex: 1;
}

.model-card .project-links {
    margin-top: 1.5rem;
    justify-content: center;
}

.models-carousel-container {
    position: relative;
    overflow: hidden;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.models-carousel-track {
    display: flex;
    gap: 2rem;
    transition: transform 0.5s ease;
    width: 250%; /* 5 cards total, showing 2 at a time = 2.5 slides */
}

.model-card {
    flex: 0 0 calc(50% - 1rem); /* Same as main carousel: 50% - gap */
    width: calc(50% - 1rem);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.model-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.model-card h4 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.model-content {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.model-image {
    flex: 0 0 120px;
    width: 120px;
}

.model-image img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.model-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.model-info p {
    color: #b0b0b0;
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

.download-btn {
    background: #4a90e2;
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.3s ease;
    text-align: center;
    align-self: flex-start;
}

.download-btn:hover {
    background: #357abd;
}

.model-content-inline {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.model-content-inline .model-image {
    flex: 0 0 120px;
    width: 120px;
    height: 120px;
    overflow: hidden;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.model-content-inline .lifesaving-image {
    flex: 0 0 450px;
    width: 450px;
    height: auto;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
}

.model-content-inline .lifesaving-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

.lifesaving-logo {
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
    gap: 3rem;
}

.lifesaving-logo img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.05);
}

.model-content-inline .model-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.model-content-inline .model-description {
    flex: 1;
    min-width: 0;
}

.model-content-inline .model-description p {
    color: #e0e0e0;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0 0 1rem 0;
}

.inline-download-btn {
    background: #4a90e2;
    color: white !important;
    text-decoration: none;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background 0.3s ease;
    display: inline-block;
}

.inline-download-btn:hover {
    background: #357abd;
}

.models-carousel-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.models-carousel-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.models-carousel-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.models-carousel-dots {
    display: flex;
    gap: 0.5rem;
}

.models-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.models-dot.active,
.models-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Projects Carousel */
.projects-carousel-container {
    position: relative;
    overflow: hidden;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.projects-carousel-track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    transition: transform 0.5s ease;
    width: 150%; /* 3 projects, showing 2 at a time */
}


.projects-carousel-track .project-card {
    margin: 0;
    box-sizing: border-box;
}

.projects-carousel-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.projects-carousel-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.projects-carousel-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.projects-carousel-dots {
    display: flex;
    gap: 0.5rem;
}

.projects-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.projects-dot.active,
.projects-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Models Carousel - Copy of Projects Carousel for 5 cards */
.models-carousel-container {
    position: relative;
    overflow: hidden;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.models-carousel-track {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    transition: transform 0.5s ease;
    width: 250%; /* 5 models, showing 2 at a time = 2.5 slides */
}

.models-carousel-track .project-card {
    margin: 0;
    box-sizing: border-box;
}

.models-carousel-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.models-carousel-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.models-carousel-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.models-carousel-dots {
    display: flex;
    gap: 0.5rem;
}

.models-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: background 0.3s ease;
}

.models-dot.active {
    background: rgba(255, 255, 255, 0.8);
}

/* Carousel Styles */
.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    width: 250%; /* 5 cards, showing 2 at a time = 2.5 slides */
    gap: 2rem;
}

.carousel-track .project-card {
    flex: 0 0 calc(50% - 1rem);
    width: calc(50% - 1rem);
    max-width: none;
    margin: 0;
    box-sizing: border-box;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active,
.dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Models Carousel */
.models-carousel-container {
    position: relative;
    overflow: hidden;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.models-carousel-track {
    display: flex;
    gap: 2rem;
    transition: transform 0.5s ease;
    width: 250%; /* 5 cards, showing 2 at a time = 2.5 slides */
}

.models-carousel-track .project-card {
    flex: 0 0 calc(50% - 1rem);
    width: calc(50% - 1rem);
    max-width: none;
    margin: 0;
    box-sizing: border-box;
}

.models-carousel-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.models-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.models-carousel-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.models-carousel-prev {
    left: 20px;
}

.models-carousel-next {
    right: 20px;
}

.models-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.models-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.models-dot.active,
.models-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* 3D Models Content */
.model-content {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.model-image {
    flex: 0 0 120px;
    width: 120px;
}

.model-image img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.model-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.model-info p {
    color: #b0b0b0;
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

.model-link {
    background: #4a90e2;
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.3s ease;
    text-align: center;
    align-self: flex-start;
}

.model-link:hover {
    background: #357abd;
}

@media (max-width: 768px) {
    .project-card.with-image {
        flex-direction: column;
    }
    
    .model-body {
        gap: 1rem; /* Reduce gap for mobile */
    }
    
    .model-body .model-image {
        width: 200px; /* Much larger for mobile */
        height: 150px; /* Maintain aspect ratio */
        flex-shrink: 0;
    }
    
    .model-text {
        flex: 1;
        min-width: 0; /* Allow text to shrink */
    }
    
    .model-text h4 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
        line-height: 1.3;
    }
    
    .model-text p {
        font-size: 0.95rem;
        line-height: 1.4;
    }
    
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .carousel-prev {
        left: 10px;
    }
    
    .carousel-next {
        right: 10px;
    }
    
    .carousel-track .project-card {
        flex: 0 0 100%;
        width: 100%;
    }
    
    .carousel-track {
        width: 500%; /* 5 cards, showing 1 at a time on mobile */
    }
    
    /* Mobile model content */
    .model-content {
        flex-direction: column;
        text-align: center;
    }
    
    .model-image {
        align-self: center;
        width: 200px;
        flex: 0 0 auto;
    }
    
    .model-image img {
        height: 120px;
    }
    
    .models-carousel-track {
        width: 500%; /* 5 cards, showing 1 at a time on mobile */
    }
    
    .models-carousel-track .project-card {
        flex: 0 0 100%;
        width: 100%;
    }
    
    .models-carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .models-carousel-prev {
        left: 10px;
    }
    
    .models-carousel-next {
        right: 10px;
    }
    
    .model-card {
        flex: 0 0 100%;
        width: 100%;
    }
    
    .model-content {
        flex-direction: column;
        text-align: center;
    }
    
    .model-image {
        align-self: center;
        width: 200px;
        flex: 0 0 auto;
    }
    
    .model-image img {
        height: 120px;
    }
    
    
    .models-carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .models-carousel-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
        min-width: 40px;
        min-height: 40px;
    }
    
    .models-carousel-prev {
        left: min(10px, 2vw);
    }
    
    .models-carousel-next {
        right: min(10px, 2vw);
    }
    
    .models-carousel-track {
        display: flex;
        width: 500%; /* 5 models, showing 1 at a time on mobile */
    }
    
    .models-carousel-track .project-card {
        flex: 0 0 calc(100% / 5);
        width: calc(100% / 5);
    }
    
    .projects-carousel-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
        min-width: 40px;
        min-height: 40px;
    }
    
    .projects-carousel-prev {
        left: min(10px, 2vw);
    }
    
    .projects-carousel-next {
        right: min(10px, 2vw);
    }
    
    .projects-carousel-track {
        display: flex;
        width: 300%; /* 3 projects, showing 1 at a time on mobile */
    }
    
    .projects-carousel-track .project-card {
        flex: 0 0 calc(100% / 3);
        width: calc(100% / 3);
    }
    
    /* Prevent mobile width overflow and zoom issues */
    .models-carousel-container,
    .projects-carousel-container {
        width: 100%;
        max-width: 100vw;
        padding: 0;
        box-sizing: border-box;
        position: relative;
        margin: 0 auto;
    }
    
    .project-card {
        max-width: 100%;
        box-sizing: border-box;
        word-wrap: break-word;
        overflow-wrap: break-word;
        position: relative;
        z-index: 1;
    }
    
    .project-card:hover {
        transform: none !important; /* Disable hover transforms on mobile/zoom */
    }
    
    .inline-text {
        min-width: 0;
        flex: 1;
        overflow: hidden;
    }
    
    .inline-text p {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    /* Zoom-safe carousel button positioning */
    .models-carousel-navigation,
    .projects-carousel-navigation {
        position: relative;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }
    
}

/* High zoom level support (when zoomed in significantly) */
@media (max-width: 480px), (min-resolution: 2dppx) {
    .models-carousel-container,
    .projects-carousel-container {
        padding: 0 0.5rem;
        max-width: calc(100vw - 1rem);
    }
    
    .models-carousel-btn,
    .projects-carousel-btn {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
        font-size: 1.2rem;
    }
    
    .models-carousel-prev,
    .projects-carousel-prev {
        left: 5px;
    }
    
    .models-carousel-next,
    .projects-carousel-next {
        right: 5px;
    }
    
    .project-card {
        padding: 1rem;
        margin: 0.25rem 0;
    }
    
    .models-carousel-track,
    .projects-carousel-track {
        gap: 1rem;
    }
    
    /* Ultra-compact model layout for high zoom */
    .model-body {
        gap: 0.75rem;
    }
    
    .model-body .model-image {
        width: 160px;
        height: 120px;
    }
    
    .model-text p {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
}

/* Touch device specific styles for gallery captions */
@media (pointer: coarse), (max-width: 768px) and (hover: none) {
    .gallery-caption {
        transform: translateY(0);
        position: relative;
        background: rgba(0, 0, 0, 0.8);
        margin-top: 0.5rem;
        border-radius: 0 0 8px 8px;
        transition: none;
    }
    
    .gallery-item {
        aspect-ratio: auto;
    }
    
    .gallery-item:hover .gallery-caption {
        transform: translateY(0);
    }
}

.project-card p {
    margin-bottom: 1.5rem;
    color: #e0e0e0;
}

.project-logo {
    width: 100%;
    height: 200px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
}

.project-logo img {
    max-width: 150px;
    max-height: 150px;
    object-fit: contain;
}

.inline-content {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.inline-logo {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.inline-logo img {
    max-width: 80px;
    max-height: 80px;
    object-fit: contain;
}

.inline-text {
    flex: 1;
}

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

@media (max-width: 768px) {
    .inline-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .inline-logo {
        align-self: center;
    }
}

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

.project-links a {
    color: #ffffff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid #ffffff;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.project-links a:hover {
    background: #ffffff;
    color: #000000;
}

.primary-button {
    display: inline-block;
    padding: 0.75rem 3rem;
    background: transparent;
    color: #ffffff !important;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    font-weight: 400;
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 200px;
    text-align: center;
}

.primary-button:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff !important;
    transform: translateY(-1px);
}

.publications-list {
    max-width: 800px;
    margin: 0 auto;
}

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

.publication-category h3 {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 0.5rem;
}

.publication-item {
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid #ffffff;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 0 8px 8px 0;
}

.contact-content {
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
}

#contact {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 80vh;
    padding: 2rem 0;
}

.contact-content > p:first-child {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: #e0e0e0;
}

.contact-description {
    font-size: 1rem !important;
    line-height: 1.7 !important;
    margin-bottom: 2.5rem !important;
    color: #cccccc !important;
    max-width: 500px;
    margin-left: auto !important;
    margin-right: auto !important;
}

.contact-info {
    margin: 2rem 0;
}

.email-display {
    font-size: 1.1rem !important;
    color: #ffffff !important;
    font-weight: 500;
    margin-bottom: 0.5rem !important;
}

.bot-warning {
    font-size: 0.8rem !important;
    color: #999999 !important;
    font-style: italic;
    margin-bottom: 0 !important;
}

.contact-location {
    margin-top: 3rem !important;
    font-size: 0.9rem !important;
    color: #cccccc !important;
    font-style: italic;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.contact-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 400;
    transition: all 0.3s ease;
    position: relative;
}

.contact-links a:hover {
    color: #cccccc;
}

.contact-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 1px;
    background: #ffffff;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.contact-links a:hover::after {
    transform: scaleX(1);
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    aspect-ratio: 4/3;
}

.gallery-item:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    color: #ffffff;
    padding: 2rem 1rem 1rem;
    font-size: 0.9rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

.outreach-content {
    margin: 0 auto 3rem;
    text-align: center;
}

.outreach-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #e0e0e0;
}

.outreach-content a {
    color: #64b3f4;
    text-decoration: none;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    background: rgba(100, 179, 244, 0.1);
    border: 1px solid rgba(100, 179, 244, 0.3);
    transition: all 0.3s ease;
    font-weight: 500;
    display: inline-block;
}

.outreach-content a:hover {
    background: rgba(100, 179, 244, 0.2);
    border-color: rgba(100, 179, 244, 0.6);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(100, 179, 244, 0.2);
}

a.inline-link,
.outreach-content a.inline-link,
.telescope-specs a.inline-link {
    color: #64b3f4 !important;
    text-decoration: underline !important;
    padding: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    border: none !important;
    font-weight: normal !important;
    display: inline !important;
    min-width: auto !important;
    text-align: left !important;
}

a.inline-link:hover,
.outreach-content a.inline-link:hover,
.telescope-specs a.inline-link:hover {
    background: transparent !important;
    border: none !important;
    transform: none !important;
    box-shadow: none !important;
    text-decoration: underline !important;
    color: #87ceeb !important;
}

.outreach-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    margin: 2rem 0;
    border-radius: 12px;
    background: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

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

.telescopes-intro {
    margin-bottom: 3rem;
    color: #e0e0e0;
}

.telescopes-intro h3 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

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

.telescope-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.telescope-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

.telescope-image {
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.telescope-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.telescope-date {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.telescope-content {
    padding: 1.5rem;
}

.telescope-title {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.telescope-location {
    color: #cccccc;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.telescope-description {
    color: #e0e0e0;
    line-height: 1.6;
    font-size: 0.95rem;
}

.telescope-specs {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.telescope-spec {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.telescope-spec .label {
    color: #cccccc;
}

.telescope-spec .value {
    color: #ffffff;
    font-weight: 500;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
        max-width: 100vw;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    main {
        margin-top: 70px;
        padding: 2rem 0;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(0, 0, 0, 0.98);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.3s ease;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links a {
        font-size: 1.2rem;
        padding: 1rem;
    }

    .hamburger {
        display: flex;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
        padding: 0 0.5rem;
        word-wrap: break-word;
        hyphens: auto;
    }

    .resource-section-title {
        font-size: 1.4rem;
        word-wrap: break-word;
        hyphens: auto;
    }

    .hero {
        padding: 3rem 0 2rem 0;
        min-height: 50vh;
    }

    .hero h1 {
        font-size: 2rem;
        word-wrap: break-word;
        hyphens: auto;
        padding: 0 0.5rem;
    }

    .hero .subtitle {
        font-size: 1.1rem;
        padding: 0 0.5rem;
        word-wrap: break-word;
    }

    .hero .description {
        padding: 0 0.5rem;
        text-align: left;
    }

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

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

    .contact-links a {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

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

    .project-card h3,
    .project-card h4 {
        font-size: 1.2rem;
        word-wrap: break-word;
        hyphens: auto;
        line-height: 1.3;
    }

    .publication-category h3 {
        font-size: 1.3rem;
        word-wrap: break-word;
        hyphens: auto;
    }

    .publication-item h4 {
        font-size: 1.1rem;
        word-wrap: break-word;
        hyphens: auto;
        line-height: 1.4;
    }

    .outreach-content h3 {
        font-size: 1.3rem;
        word-wrap: break-word;
        hyphens: auto;
    }

    .telescope-title {
        font-size: 1.1rem;
        word-wrap: break-word;
        hyphens: auto;
    }
}

footer {
    background: rgba(0, 0, 0, 0.9);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 4rem;
    padding: 2rem 0;
    text-align: center;
}

.footer-content {
    color: #999999;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-content a {
    color: #cccccc;
    text-decoration: none;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.footer-content a:hover {
    color: #64b3f4;
}

/* Research & Projects Page */
.research-container {
    max-width: 1200px;
    margin: 0 auto;
}

.research-section {
    margin-bottom: 4rem;
}

.research-section-title {
    color: #ffffff;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    font-weight: 600;
    border-left: 4px solid #64b3f4;
    padding-left: 1rem;
}

.research-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.research-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(100, 179, 244, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

.project-status {
    background: rgba(76, 175, 80, 0.15);
    color: #4CAF50;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(76, 175, 80, 0.3);
    white-space: nowrap;
}

.project-status.ongoing {
    background: rgba(255, 193, 7, 0.15);
    color: #FFC107;
    border-color: rgba(255, 193, 7, 0.3);
}

.featured-project {
    border-color: rgba(100, 179, 244, 0.4);
    background: rgba(100, 179, 244, 0.03);
}

.research-item h4 {
    color: #ffffff;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.research-highlights {
    background: rgba(100, 179, 244, 0.08);
    border-left: 3px solid #64b3f4;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 8px;
}

.research-highlights h5 {
    color: #64b3f4;
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.research-highlights ul {
    margin: 0;
    padding-left: 1.5rem;
}

.research-highlights li {
    color: #e0e0e0;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.research-item > p:first-of-type em {
    color: #64b3f4;
    font-style: normal;
    font-weight: 500;
    font-size: 0.95rem;
}

.research-item p {
    color: #e0e0e0;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.research-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.tag {
    background: rgba(100, 179, 244, 0.15);
    color: #64b3f4;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(100, 179, 244, 0.3);
    transition: all 0.3s ease;
}

.tag:hover {
    background: rgba(100, 179, 244, 0.25);
    border-color: rgba(100, 179, 244, 0.5);
}

.project-links {
    margin: 1rem 0;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.project-links .inline-link {
    margin-right: 0.5rem;
}

/* Research Interests Grid */
.interests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.interest-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.interest-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(100, 179, 244, 0.2);
    transform: translateY(-2px);
}

.interest-item h4 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.interest-item p {
    color: #cccccc;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .research-item {
        padding: 1.5rem;
    }
    
    .research-section-title {
        font-size: 1.4rem;
        word-wrap: break-word;
        hyphens: auto;
    }
    
    .research-item h4 {
        font-size: 1.1rem;
        word-wrap: break-word;
        hyphens: auto;
        line-height: 1.4;
    }
    
    .interests-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .interest-item h4 {
        font-size: 1rem;
        word-wrap: break-word;
        hyphens: auto;
        line-height: 1.4;
    }
    
    .research-tags {
        gap: 0.3rem;
    }
    
    .tag {
        font-size: 0.75rem;
        padding: 0.25rem 0.6rem;
    }
}

/* CV Link Styling */
.cv-link {
    text-align: center;
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(100, 179, 244, 0.08);
    border: 1px solid rgba(100, 179, 244, 0.2);
    border-radius: 8px;
}

.cv-link .inline-link {
    font-size: 1.1rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    background: rgba(100, 179, 244, 0.1);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.cv-link .inline-link:hover {
    background: rgba(100, 179, 244, 0.2);
    transform: translateY(-1px);
}

.research-more-btn {
    display: inline-block;
    background: #4a90e2;
    color: white !important;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.research-more-btn:hover {
    background: #357abd;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.3);
}