@import url('https://fonts.googleapis.com/css2?family=Onest:wght@100..900&display=swap');

body {
    font-family: "Onest", sans-serif;
    background-color: #020305;
    padding: 0;
    color: #FFFFFF;
}

/* content */

.astrophotography-h1 {
    font-size: 28px;
    font-weight: 600;
    margin-left: 15px;
}

.astrophotography-h3 {
    font-size: 20px;
    font-weight: 600;
}

.astrophotography-p {
    font-size: 16px;
    font-weight: 400;
    color: #8D8D8D;
}


/* Tutorials Section: */

.tutorials .tuto-cards {
    display: flex;
    justify-content: center;
    column-gap: 60px;
    row-gap: 20px;
    flex-wrap: wrap;
    margin: 0 auto;
}

.tuto-cards .tutocard {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 375px;
    height: 460px;
    border: 2.34px solid #474747;
    border-radius: 24px;
}

.tutocard .tuto-image {
    width: 87%;
}

.tuto-image img {
    width: 100%;
    border-radius: 24px;
}

.tutocard .tuto-content {
    width: 87%;
}

.tuto-content button {
    font-size: 14px;
    font-weight: 500;
    background: #020305;
    color: #FFFFFF;
    border: 2px solid #AAAAAA;
    border-radius: 16px;
    padding: 10px 20px;
}

.tuto-content button:hover {
    transform: scale(1.05);
    background: #1a1a1a;
}

/* skywatching section */
.skywatching-cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    column-gap: 50px;
    row-gap: 20px;
    margin: 0 40px;
}

.skywatching-cards .skywatching-card {
    display: flex;
    min-width: 375px;
    max-width: 615px;
    min-height: 264px;
    flex: 1 1 50%;
    border: 2.34px solid #474747;
    border-radius: 24px;
    overflow: hidden;
}

.skywatching-card .skywatching-image {
    width: 44%;
    height: 100%;
}

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

.skywatching-card .skywatching-content {
    width: 66%;
    display: flex;
    flex-direction: column;
    padding: 10px;
}


.skywatching-content .skywatching-tag {
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2.34px solid #474747;
    border-radius: 24px;
    width: 116px;
    padding: 5px 10px;
}

.skywatching-tag span {

    margin-left: 4px;
    font-size: 10px;
    font-weight: 400;
}

/* astrophotography section */

.tutorials {
    margin-top: 80px;
}

.astrophotography-images {
    column-count: 1;
    margin-left: 40px;
}

.astrophotography-images .astrophotography-image {
    break-inside: avoid;
    display: inline-block;
    position: relative;
    width: 375px;
    border: 2.34px solid #474747;
    border-radius: 24px;
    overflow: hidden;
    padding: 10px;
    margin-bottom: 10px;
}

.astrophotography-image img {
    width: 100%;
    border-radius: 24px;
}

.astrophotography-image .astrophotography-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #E1E1E1;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    box-shadow: 1px 1px 3px white;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}


.astrophotography-icon img {
    width: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.astrophotography-image .astrophotography-profile {
    display: flex;
    align-items: center;
    position: absolute;
    bottom: 25px;
    left: 20px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.astrophotography-profile img {
    width: 38px;
    box-shadow: 1px 1px 1px rgba(0, 0, 0, 5);
}

.astrophotography-profile span {
    font-size: 13px;
    font-weight: 400;
    text-shadow: 1px 1px 2px white;
    margin-left: 7px;
}



.astrophotography-image .astrophotography-download {
    position: absolute;
    bottom: 25px;
    right: 30px;
}

.astrophotography-image .astrophotography-heart {
    position: absolute;
    top: 25px;
    right: 75px;
}

.astrophotography-image .astrophotography-add {
    position: absolute;
    top: 25px;
    right: 30px;
}

.astrophotography-image:hover .astrophotography-icon, .astrophotography-image:hover .astrophotography-profile {
    visibility: visible;
    opacity: 1;
}


@media (min-width: 600px) {
    .astrophotography-h1 {
        font-size: 48px;
        margin-left: 60px;
    }

    .astrophotography-h3 {
        font-size: 24px;
    }

    .astrophotography-p {
        font-size: 18px;
    }

    .astrophotography-images {
        column-count: 3;
    }

    .astrophotography-images .astrophotography-image {
        margin-bottom: 15px;
    }
}


/* === NAVBAR by ilias === */
.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 2rem;
    background-color: #020305;
    position: fixed;
    height: 80px;
    top: 0;
    width: 100%;
    box-sizing: border-box;
    z-index: 100;
}

.logo {
    position: absolute;
    left: 2rem;
}

.logo img {
    width: 60px;
    height: auto;
}

.nav-links {
    display: flex;
    width: 900 px;
    background-color: rgba(72, 72, 72, 0.3);
    border: 1px solid transparent;
    border-radius: 62px;
    background:
        linear-gradient(black, black) padding-box,
        /* inner background */
        linear-gradient(180deg, #595EC1 5%, #353983 45%, #25286C 100%) border-box;
    background-clip: padding-box, border-box;
    padding: 20px;
    border-radius: 62px;
    gap: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #a9b3ff;
}

/* === HAMBURGER === */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
    position: absolute;
    right: 2rem;
    z-index: 200;
}

.hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* === SIDEBAR === */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    background: #020305;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    z-index: 999;
}

.sidebar.active {
    transform: translateX(0);
}

.sidebar a {
    color: white;
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 500;
    margin: 1rem 0;
    transition: color 0.3s ease;
}

.sidebar a:hover {
    color: #a9b3ff;
}

/* === CLOSE BUTTON === */
.close-btn {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #a9b3ff;
}

/* === HAMBURGER ANIMATION === */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

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

@media (max-width: 768px) {

    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

}


/* footer by yassin */

.main-footer {
    background-color: #000000; 
    color: #cfd3e0;
    padding: 50px 20px 25px;
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-col.brand h2 {
    color: #9ca8ff;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.footer-col.brand p {
    font-size: 0.9rem;
    margin-bottom: 15px;
    color: #bfc4d9;
    max-width: 250px;
}

.social-icons {
  display: flex;
  gap: 2rem;
}

.social-icons img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.social-icons img:hover {
  transform: scale(1.2);
}

#fb:hover {
    box-shadow: rgb(70, 127, 233) 4px -4px 20px, rgb(70, 127, 233) -4px 4px 20px;
}

#X:hover {
    box-shadow: rgb(0, 0, 0) 4px -4px 20px, rgb(0, 0, 0) -4px 4px 20px;
}

#inst:hover {
    box-shadow: rgb(216, 90, 174) 4px -4px 20px, rgb(206, 39, 39) -4px 4px 20px;
}

#ytp:hover {
    box-shadow: rgb(221, 17, 17) 4px -4px 20px, rgb(247, 16, 16) -4px 4px 20px;
}

#messg:hover {
    box-shadow: rgb(70, 127, 233) 4px -4px 20px, rgb(70, 127, 233) -4px 4px 20px;
}

.logo-footer {
    display: flex;
    gap: 1.2rem;
    align-items: center;
}

.logo-footer img {
    width: 55px;
    height: 55px;
}

.footer-col h3 {
    color: #fff;
    margin-bottom: 10px;
    font-size: 1rem;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin: 5px 0;
}

.footer-col ul li a {
    color: #cfd3e0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.7s ease;
}

.footer-col ul li a:hover {
    color: #9ca8ff;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    border-top: 1px solid #2a2d3a;
    padding-top: 15px;
    font-size: 0.85rem;
    color: #8a90a5;
}

@media (min-width: 768px) {
    .footer-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        gap: 30px;
    }

    .footer-col {
        flex: 1;
    }

    .footer-col.brand {
        flex: 1.5;
    }
}

/* end of the footer by yassin */
