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

body {
    background: #8360c3;
    background: -webkit-linear-gradient(to right, #2ebf91, #8360c3);
    background: linear-gradient(to right, #2ebf91, #8360c3);
    overflow-x: hidden;
    overflow-y: overlay;
}

/** header hissəsi */
header {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    padding: 10px 20px 20px 20px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    position: relative;
}

.logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-right: 15px;
    flex-shrink: 0;
}

h1 {
    font-size: 2.2rem;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1;
    flex-shrink: 1;
}

.main-nav {
    display: block;
    width: 100%;
    margin-top: 15px;
    order: 1;
}

ul.nav {
    display: flex;
    justify-content: center;
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
    flex-wrap: wrap;
}

.nav-item {
    margin: 0 8px 10px 8px;
}

.nav-link {
    font-size: 1.1rem;
    text-decoration: none;
    color: white;
    padding: 0.7rem 0.8rem;
    position: relative;
    display: inline-block;
}

.nav-link:hover {
    color: aqua;
    text-decoration: none;
}

.nav-item.active .nav-link {
    color: aqua;
    font-weight: bold;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: aqua;
    transition: width 0.3s ease-out;
}

.nav-item.active .nav-link::after,
.nav-link:hover::after {
    width: 100%;
}

@keyframes slideDownBackground {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 255, 255, 0.2);
    z-index: -1;
    transform: translateY(-100%);
    transition: transform 0.3s ease-out;
    opacity: 0;
}

.nav-item.active .nav-link::before,
.nav-link:hover::before {
    transform: translateY(0);
    opacity: 1;
}

a {
    color: white;
    text-decoration: none;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
}

.menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: white;
    transition: all 0.3s ease-in-out;
}

/** hamburger menu hissəsi */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    overflow-x: hidden;
    overflow-y: auto;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    padding-top: 60px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    transform: translateX(-100%);
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.mobile-nav.is-open {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

.mobile-nav .close-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 36px;
    text-decoration: none;
    color: red;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-shadow: 0 0 5px rgba(255, 0, 0, 0.7);
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.mobile-nav .close-btn:hover {
    color: darkred;
    text-shadow: 0 0 10px rgba(255, 0, 0, 1);
}

.mobile-nav ul.mobile-menu-list {
    list-style: none;
    padding: 0;
    width: 100%;
}

.mobile-nav ul.mobile-menu-list .nav-item {
    margin: 15px 0;
}

.mobile-nav ul.mobile-menu-list .nav-link {
    font-size: 1.5rem;
    color: white;
    padding: 10px 0;
    display: block;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateX(-20px) translateZ(0);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    will-change: opacity, transform;
}

.mobile-nav.is-open .mobile-menu-list .nav-link.animate-in {
    opacity: 1;
    transform: translateX(0) translateZ(0);
    transition-delay: var(--animation-delay);
}

.mobile-nav ul.mobile-menu-list .nav-link:hover {
    color: #00ffff;
    background-color: rgba(0, 255, 255, 0.1);
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
    border-radius: 5px;
}

/** main hissəsi */
.contact-section {
    background-color: #ffffff;
    padding: 60px 0;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 40px auto;
    max-width: 1000px;
    flex-grow: 1;
    text-align: justify;
}

.contact-section .container {
    max-width: 960px;
    padding: 0 15px;
}

.section-title {
    color: #333;
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5em;
}

.section-description {
    color: #666;
    text-align: center;
    margin-bottom: 50px;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 50px;
    justify-content: center;
    align-items: stretch;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.contact-item {
    background-color: #f0f8ff;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.contact-icon {
    font-size: 3em;
    color: #007bff;
    margin-bottom: 15px;
}

.contact-item-title {
    color: #333;
    font-size: 1.3em;
    margin-bottom: 10px;
}

.contact-item-text {
    color: #555;
    font-size: 1em;
    line-height: 1.5;
}

.contact-item-text abbr {
    margin-right: 2px;
}

.contact-item-text a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item-text a:hover {
    color: #0056b3;
}

.map-title {
    color: #333;
    text-align: center;
    margin-top: 50px;
    margin-bottom: 30px;
    font-size: 2em;
}

.map-container {
    overflow: hidden;
    position: relative;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    padding-bottom: 50%;
    height: 0;
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/** footer hissəsi */
footer {
    width: 100%;
    padding: 40px 20px;
    color: white;
    background: #1a1a1a;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    width: 100%;
    max-width: 1200px;
    margin-bottom: 30px;
}

.footer-about,
.footer-links,
.footer-contact,
.footer-social {
    flex: 1;
    min-width: 250px;
    margin: 20px;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}

.footer-logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 15px;
    object-fit: cover;
}

.footer-about p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #cccccc;
}

.footer-links h4,
.footer-contact h4,
.footer-social h4 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #00ffff;
    position: relative;
    padding-bottom: 8px;
}

.footer-links h4::after,
.footer-contact h4::after,
.footer-social h4::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: #00ffff;
}

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

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.footer-links ul li a:hover {
    color: #00ffff;
    transform: translateX(5px);
}

.footer-contact p {
    font-size: 1rem;
    margin-bottom: 10px;
    color: #cccccc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-contact p i {
    margin-right: 10px;
    color: #00ffff;
    font-size: 1.1rem;
}

.sosial-media {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.sosial-media a {
    margin: 0 10px;
    transition: transform 0.3s ease;
}

.sosial-media img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #00ffff;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.sosial-media img:hover {
    border-color: red;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.7);
    transform: scale(1.1);
}

.footer-bottom {
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 20px;
    font-size: 0.9rem;
    color: #cccccc;
}

/** yuxarı çıx hissəsi */
.go-upstairs {
    position: fixed;
    bottom: 25px;
    right: 25px;
    display: none;
    background: linear-gradient(45deg, #FF007F, #FF7F00);
    color: white;
    border-radius: 25px;
    width: 150px;
    height: 55px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 17px;
    font-weight: bold;
    text-decoration: none;
    letter-spacing: 0.5px;
    padding: 0 15px;
    box-sizing: border-box;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    transition: background 0.4s ease, transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 1000;
    text-align: center;
    line-height: 1.2;
}

.go-upstairs::before {
    content: none;
}

.go-upstairs:hover {
    background: linear-gradient(45deg, #FF7F00, #FF007F);
    transform: translateY(-7px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
}

.go-upstairs:active {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.35);
}

/** Responsivlik: Media Queries */
/* 1449px */
@media screen and (max-width: 1449px) {

    .menu-items {
        right: -100%;
    }

    .hamburger-icon {
        display: block;
    }

    .desktop-menu {
        display: none;
    }

    .main-nav {
        display: none;
    }

    .menu-toggle {
        display: flex;
        position: static;
        transform: none;
        margin-left: auto;
        order: 2;
    }

}

/* 1439px */
@media (max-width: 1439px) {

    header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 10px 15px;
        flex-wrap: nowrap;
    }

    .logo {
        width: 70px;
        height: 70px;
        margin-right: 10px;
    }

    h1 {
        font-size: 1.8rem;
        flex-grow: 1;
    }

}

/* 768px */
@media (max-width: 768px) {

    .contact-info-grid {
        grid-template-columns: 1fr;
    }

    .contact-item {
        padding: 20px;
    }

    .section-title {
        font-size: 2em;
    }

    .section-description {
        font-size: 1em;
        margin-bottom: 40px;
    }

    .contact-item {
        padding: 25px;
    }

    .contact-icon {
        font-size: 2em;
    }

    .contact-item-title {
        font-size: 1.3em;
    }

    .contact-item-text abbr {
        margin-right: 2px;
    }

    .map-title {
        font-size: 1.8em;
        margin-top: 40px;
    }

    .map-container {
        padding-bottom: 55%;
        height: 0;
        margin: 20px auto;
        border-radius: 8px;
    }

    .map-container iframe {
        height: 100%;
    }

    .go-upstairs {
        width: 120px;
        height: 48px;
        font-size: 15px;
        bottom: 20px;
        right: 20px;
        border-radius: 20px;
    }

    footer {
        padding-top: 20px;
    }

}

/* 576px */
@media (max-width: 576px) {

    .logo {
        width: 60px;
        height: 60px;
        margin-right: 8px;
    }

    h2 {
        font-size: 1.5rem;
        min-width: 0;
    }

    .mobile-nav ul.mobile-menu-list .nav-link {
        font-size: 1.2rem;
    }

    .sosial-media img {
        width: 45px;
        height: 45px;
        margin: 0 5px;
    }

    .go-upstairs {
        width: 100px;
        height: 42px;
        right: 15px;
        bottom: 15px;
        font-size: 13px;
        border-radius: 18px;
        padding: 0 10px;
    }

}

/* 480px */
@media (max-width: 480px) {

    .logo {
        width: 60px;
        height: 60px;
        margin-right: 8px;
    }

    h1 {
        font-size: 1.5rem;
    }

    .mobile-nav ul.mobile-menu-list .nav-link {
        font-size: 1.2rem;
    }

    .contact-section {
        padding: 30px 0;
        margin: 20px auto;
    }

    .section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .contact-item-text abbr {
        margin-right: 1px;
    }

    .map-container {
        padding-bottom: 65%;
    }

    .sosial-media img {
        width: 45px;
        height: 45px;
        margin: 0 5px;
    }

    .go-upstairs {
        width: 90px;
        height: 38px;
        font-size: 12px;
        bottom: 12px;
        right: 12px;
        border-radius: 16px;
        padding: 0 8px;
    }

}