body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background-color: #05070d;
    color: white;
}

header {
    text-align: center;
}

header h1{
    margin:0;
    display:flex;
    flex-direction:column;
    align-items:center;
}

.name{
    font-size:2.2rem;
    font-weight:300;
    letter-spacing:3px;
}

.astro{
    margin-top:10px;
    font-size:3rem;
    font-weight:700;
    letter-spacing:10px;
}

header p {
    margin-top: 8px;
    color: #cccccc;
    font-size: 1.1em;
}

nav{
    margin-top:20px;
    display:flex;
    justify-content:center;
    gap:30px;
    flex-wrap:wrap;
}

.hero{
    height:100vh;
    background-image: url("images/eagle-nebula-m16-hero.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow:hidden;

    display:flex;
    justify-content:center;
    align-items:center;
    text-align:center;
}

.overlay{
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.20);

    display:flex;
    flex-direction:column;
    justify-content:flex-start;
    padding-top:50vh;
    align-items:center;
}

.subtitle{
    color:#cccccc;
    font-size:1.4em;
    margin-bottom:25px;
}

.language{
    display:flex;
    justify-content:center;
    gap:15px;
    margin-bottom:25px;
}

.lang-btn{
    background:none;
    cursor:pointer;
    font-size:1rem;
    color:white;
    text-decoration:none;
    font-weight:bold;
    padding:8px 18px;
    border:2px solid rgba(255,255,255,0.35);
    border-radius:25px;
    transition:0.3s;
}

.lang-btn:hover{
    border-color:#5bbcff;
    color:#5bbcff;
    transform:translateY(-2px);
}

.lang-btn.active{
    background:#5bbcff;
    border-color:#5bbcff;
    color:#111;
}

nav a{
    color:white;
    text-decoration:none;
    font-weight:bold;
    font-size:1.1em;
    transition:0.3s;
}

nav a:hover{
    color:#5bbcff;
    transform:scale(1.08);
}

#gallery{
    margin-top:60px;
    text-align:center;
}

.featured-image{
    width:90%;
    max-width:1000px;
    border-radius:12px;
    box-shadow:0 0 25px rgba(0,0,0,0.5);
    margin:30px auto;
    display:block;
}
main{
    margin-top:-200px;
    padding:40px;
    text-align:center;
}

hr{
    margin:40px auto;
    width:80%;
    border:0;
    border-top:1px solid rgba(255,255,255,0.15);
}
section{
    max-width:1100px;
    margin:80px auto;
    padding:20px;
}

section h2{
    font-size:2rem;
    margin-bottom:20px;
    color:#5bbcff;
}

section p{
    font-size:1.1rem;
    line-height:1.8;
    color:#dddddd;
}

.equation {
    text-align: center;
}

html{
    scroll-behavior:smooth;
}

.gallery-grid{

    column-count:3;
    column-gap:22px;
    margin-top:50px;

}

.gallery-grid a{

    display:inline-block;
    width:100%;
    margin-bottom:22px;

    text-decoration:none;
    color:white;

    transition:.35s;

    break-inside:avoid;

}

.gallery-grid a:hover{

    transform:translateY(-6px);

}

.gallery-grid img{

    width:100%;
    height:auto;

    display:block;

    border-radius:10px;

    box-shadow:0 0 18px rgba(0,0,0,.45);

}

.gallery-grid h3{

    margin:10px 0 0 0;

    text-align:center;

    font-size:.95rem;

    letter-spacing:1px;

}

/* ===== LANGUAGE ===== */

.lang-en{
    display:none;
}

.lang-it,
.lang-en{
    animation:fade .25s ease;
}

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

@media (max-width:1100px){

    .gallery-grid{

        column-count:2;

    }

}

@media (max-width:700px){

    .gallery-grid{

        column-count:1;

    }

}

/* ===========================
   OBJECT PAGES
=========================== */

.object-hero{

    text-align:center;

    margin:40px auto 70px auto;

}

.hero-image{

    width:100%;

    max-width:1200px;

    display:block;

    margin:30px auto;

    border-radius:12px;

    box-shadow:0 0 25px rgba(0,0,0,.45);

}

.object-map{

    width:100%;

    max-width:900px;

    display:block;

    margin:35px auto;

    border-radius:10px;

    box-shadow:0 0 20px rgba(0,0,0,.35);

}

table{

    width:100%;

    max-width:850px;

    margin:35px auto;

    border-collapse:collapse;

}

table td{

    padding:14px;

    border-bottom:1px solid rgba(255,255,255,.12);

}

table td:first-child{

    color:#5bbcff;

    font-weight:bold;

    width:35%;

}

ul{

    max-width:900px;

    margin:auto;

    line-height:2;

}

/* ==========================
   SMARTPHONE
========================== */

@media (max-width: 768px) {

    .hero{
        height:90vh;
    }

    .overlay{
        padding-top:40vh;
    }

    main{
        padding:40px;
    }

    .name{
        font-size:1.6rem;
        letter-spacing:2px;
        margin-top:-20px;
    }

    .astro{
        font-size:1.7rem;
        letter-spacing:3px;
        line-height:1.1;
        margin-top:0px;
    }

    .subtitle{
        font-size:1rem;
        padding:0 10px;
    }

    nav{
        gap:15px;
        margin-top:-20px;
    }

    nav a{
        font-size:1rem;
    }

    section{
        margin:40px auto;
        padding:10px;
    }

    section h2{
        font-size:1.6rem;
    }

    section p{
        font-size:1rem;
    }

    /* Home */

   main h2{
        font-size:1.4rem;
        margin-bottom:10px;
        position: relative;
        top: -100px;
        }

    main p{
        font-size:0.9rem;
        line-height:1.5;
        max-width:90%;
        margin-top:5px;
        margin-left:auto;
        margin-right:auto;
        position: relative;
        top: -50px;
    }

    .gallery-grid{
        grid-template-columns:1fr;
        gap:25px;
    }

    /* Workflow images on smartphone */
    .thumb-image {
        width: 90%;
        max-width: 800px;
        height: auto;
        display: block;
        margin: 25px auto;
    }

    .hero-image,
    .featured-image,
    .object-map{
        width:100%;
        height:auto;
    }

    table{
        font-size:0.9rem;
    }

    table td{
        padding:10px;
    }

}

/* ==========================
   OBJECT NAVIGATION
========================== */

.object-navigation{

    display:flex;
    justify-content:flex-end;
    align-items:center;
    gap:30px;
    margin:60px auto 40px auto;
    text-align:center;

}

.object-navigation a,
.object-navigation a:visited{

    color:white;
    text-decoration:none;
    font-weight:bold;
    transition:.3s;

}

.object-navigation a:hover{

    color:#5bbcff;

}

.top-navigation{

    margin:20px auto 30px auto;

}

.top-bar{

    max-width:1200px;
    margin:25px auto 10px auto;
    padding:0 20px;

    display:flex;
    justify-content:space-between;
    align-items:center;
    flex-wrap:wrap;
    gap:15px;
}

.language-switch{

    display:flex;
    gap:10px;

}

.top-bar .object-navigation{

    margin:0;
}

/* ===========================
   SECTION LINKS / EQUIPMENT
=========================== */

.section-link{
    display:block;
    color:inherit;
    text-decoration:none;
}

.section-link h2{
    transition:.3s;
}

.section-link:hover h2{
    color:#7ac8ff;
}

.equipment-section{
    max-width:900px;
    margin:70px auto;
}

.equipment-card{
    max-width:850px;
    margin:25px auto;
    padding:24px 28px;
    text-align:left;
    border:1px solid rgba(255,255,255,.12);
    border-radius:12px;
    background:rgba(255,255,255,.025);
}

.equipment-card h3{
    margin:0 0 14px 0;
    color:#ffffff;
    font-size:1.25rem;
}

.equipment-card p,
.equipment-card li{
    color:#dddddd;
    line-height:1.7;
}

.equipment-card ul{
    margin:0;
    padding-left:25px;
}

@media (max-width:768px){
    .equipment-section{
        margin:50px auto;
        padding:10px;
    }

    .equipment-card{
        padding:18px;
    }

    .equipment-card h3{
        font-size:1.1rem;
    }
}
/* ==========================
   CONTACT LINKS
========================== */

.contact-links a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

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

/* ==========================
   GALLERY NAVIGATION
========================== */

.gallery-navigation a,
.gallery-navigation a:visited{

    color:white;
    text-decoration:none;
    font-weight:bold;
    transition:.3s;

}

.gallery-navigation a:hover{

    color:#5bbcff;

}


/* ==========================
   WORKFLOW COVER
========================== */

.workflow-cover {
    width: 100%;
    max-width: 1000px;
    margin: 30px auto;
    text-align: center;
}

.workflow-hero {
    width: 100%;
    max-width: 1000px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 0 25px rgba(0,0,0,.45);
}

@media (max-width: 768px) {

    .workflow-cover {
        width: 100%;
        margin: 25px auto;
    }

    .workflow-hero {
        width: 100%;
        max-width: 100%;
        height: auto;
    }
}


/* ==========================
   ABOUT - ACKNOWLEDGEMENTS LINK
========================== */

.about-thanks-link {
    text-align: center;
    margin-top: 25px;
}

.about-thanks-link a,
.about-thanks-link a:visited {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.about-thanks-link a:hover {
    color: #5bbcff;
    text-decoration: underline;
}


/* ==========================
   FOOTER
========================== */

.site-footer {
    margin: 80px auto 0 auto;
    padding: 40px 20px 30px 20px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,.15);
    color: #cccccc;
}

.footer-title {
    margin: 0 0 22px 0;
    line-height: 1.7;
    color: #cccccc;
}

.footer-title strong {
    color: white;
}

.footer-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    margin: 0 auto 22px auto;
}

.footer-nav a,
.footer-nav a:visited {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: .95rem;
}

.footer-nav a:hover {
    color: #5bbcff;
    text-decoration: underline;
}

.footer-copyright {
    margin: 0;
    font-size: .85rem;
    color: #999999;
}

.about-thanks-link-bottom {
    margin-top: 10px;
}

@media (max-width: 768px) {

    .site-footer {
        margin-top: 55px;
        padding: 32px 15px 25px 15px;
    }

    .footer-nav {
        gap: 12px 16px;
    }

    .footer-nav a {
        font-size: .9rem;
    }

}

/* ==========================
   PDF WORKFLOW
========================== */

.pdf-download a,
.pdf-download a:visited {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.pdf-download a:hover {
    color: #5bbcff;
    text-decoration: underline;
}