* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
}

body.modal-open {
    overflow: hidden;
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(45deg, #0a0b11, #1a1c28);
    z-index: -1;
    animation: gradientShift 20s infinite ease-in-out;
}

.background::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 25% 25%, rgba(29, 78, 216, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(124, 58, 237, 0.1) 0%, transparent 50%);
    opacity: 0.8;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 0%;
    }

    50% {
        background-position: 100% 100%;
    }

    100% {
        background-position: 0% 0%;
    }
}

main {
    position: relative;
    z-index: 1;
    padding-top: 80px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background: #171b26;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.logo {
    max-width: 200px;
    height: auto;
}

.hamburger {
    display: block;
    background: none;
    border: none;
    color: #ccc;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
}

.desktop-nav {
    display: none;
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #171b26;
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.mobile-menu.active {
    display: block;
}

.mobile-menu ul {
    list-style: none;
}

.mobile-menu li {
    margin: 10px 20px;
}

.mobile-menu a {
    color: #ccc;
    text-decoration: none;
    font-weight: 600;
    display: block;
    padding: 10px;
    transition: color 0.3s ease;
}

.mobile-menu a:hover {
    color: #37b1ff;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    overflow-y: auto;
}

.modal.active {
    display: block;
}

.modal-content {
    position: relative;
    background: #1a1c28;
    margin: 60px auto;
    padding: 20px;
    max-width: 600px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.modal-content h2 {
    color: #37b1ff;
    margin-bottom: 20px;
    text-align: left;
}

.modal-content .modal-back {
    background: none;
    border: none;
    color: #37b1ff;
    font-size: 1rem;
    cursor: pointer;
    padding: 5px 0;
    margin-bottom: 15px;
    display: none;
    transition: color 0.3s ease;
}

.modal-content .modal-back:hover {
    color: #fff;
}

.modal-content .modal-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.modal-content .modal-list li {
    margin: 10px 0;
}

.modal-content .modal-list a {
    color: #ccc;
    text-decoration: none;
    display: block;
    padding: 8px 15px;
    transition: all 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
    .modal-content .modal-list a:hover {
        color: #37b1ff;
        background: rgba(55, 177, 255, 0.1);
        border-radius: 4px;
    }
}

.modal-content .modal-list ul {
    margin-left: 20px;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #ccc;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #37b1ff;
}

h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    text-align: center;
}

h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
    text-shadow: 0 0 5px rgba(55, 177, 255, 0.5);
    text-align: center;
}

p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: center;
}

.subheader {
    font-size: 1.25rem;
    color: #ccc;
    margin-bottom: 30px;
    text-align: center;
}

.intro {
    background: rgba(23, 35, 52, 0.9);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.slideshow {
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    border-radius: 8px;
    max-height: 400px;
    background: linear-gradient(45deg, #0a0b11, #1a1c28);
}

.slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.slides img {
    width: 100%;
    max-height: 400px;
    flex-shrink: 0;
    object-fit: contain;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}

.slideshow button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(23, 35, 52, 0.8);
    border: none;
    color: #fff;
    font-size: 1.5rem;
    padding: 10px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.slideshow button:hover {
    background: rgba(55, 177, 255, 0.8);
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.info-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.info-grid>div:nth-child(1) {
    background: none;
    padding: 0;
    box-shadow: none;
}

.info-grid>div:nth-child(2) {
    background: rgba(23, 35, 52, 0.9);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.info-tiles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    background: none;
}

.tile {
    background: rgba(23, 35, 52, 0.9);
    padding: 15px;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.tile ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tile ul li {
    margin-bottom: 8px;
}

.centered-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.info-grid img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 10px;
}

ul {
    list-style: none;
}

ul li {
    margin-bottom: 10px;
}

.glow {
    text-shadow: 0 0 5px rgba(55, 177, 255, 0.7);
}

section {
    padding: 40px 0;
}

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    justify-content: center;
    max-width: 1000px;
    margin: 0 auto;
}

.features>div {
    background: rgba(23, 35, 52, 0.9);
    padding: 20px;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    flex: 1;
}

.features>div:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.features i {
    font-size: 2rem;
    color: #37b1ff;
    margin-bottom: 15px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.project-grid>div {
    background: rgba(23, 35, 52, 0.9);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    height: 400px;
}

.autoscroll {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.autoscroll ul {
    margin-bottom: 0;
}

.project-grid>div:nth-child(1) .autoscroll ul {
    animation: autoScroll 120s linear infinite;
}

.project-grid>div:nth-child(2) .autoscroll ul {
    animation: autoScroll 120s linear infinite;
}

.project-grid>div:nth-child(3) .autoscroll ul {
    animation: autoScroll 40s linear infinite;
}

@keyframes autoScroll {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-50%);
    }
}

video {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto 20px;
    display: block;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    object-fit: cover;
    height: 607px;
}

.contact-card {
    background: linear-gradient(135deg, #1a1c28 0%, #2c3e50 100%);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
}

.contact-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(55, 177, 255, 0.2) 0%, transparent 70%);
    animation: pulse 8s infinite ease-in-out;
    pointer-events: none;
}

.contact-card:hover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid transparent;
    border-radius: 12px;
    box-shadow: 0 0 15px #ffffff, inset 0 0 15px #ffffff;
    pointer-events: none;
    z-index: 1;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.3;
    }
}

.contact-header {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
}

.contact-header h2 {
    font-size: 2rem;
    color: #37b1ff;
    text-shadow: 0 0 10px rgba(55, 177, 255, 0.5);
    margin-bottom: 5px;
    white-space: nowrap;
    position: relative;
    transition: text-shadow 0.3s ease;
}

.contact-card:hover .contact-header h2 {
    text-shadow: 0 0 15px rgba(55, 177, 255, 0.8);
}

.contact-header p {
    font-size: 1.1rem;
    color: #ccc;
    white-space: nowrap;
}

.contact-details {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-details p {
    margin: 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.contact-details i {
    margin-right: 10px;
    color: #37b1ff;
    font-size: 1.2rem;
}

.contact-details a {
    color: #37b1ff;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: #fff;
}

.email {
    direction: rtl;
    unicode-bidi: bidi-override;
}

a {
    color: #37b1ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #fff;
}

@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr;
    }

    .info-tiles {
        grid-template-columns: 1fr;
    }

    .intro,
    .slideshow,
    .info-grid>div,
    .features,
    .project-grid>div,
    .contact-card {
        margin: 0 10px;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .project-grid>div {
        height: 300px;
    }

    .autoscroll {
        height: 200px;
    }

    video {
        height: 405px;
    }

    .slideshow {
        max-height: 300px;
        height: 300px;
    }

    .slides {
        height: 100%;
    }

    .slides img {
        max-height: 300px;
        height: 100%;
        object-fit: contain;
    }

    .contact-card {
        max-width: 100%;
        padding: 20px;
    }

    .contact-header h2 {
        font-size: 1.75rem;
    }

    .contact-header p,
    .contact-details p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .logo {
        max-width: 150px;
    }

    .slideshow {
        max-height: 300px;
        height: 300px;
    }

    .slides img {
        max-height: 300px;
        height: 100%;
    }

    .contact-header h2 {
        font-size: 1.5rem;
    }

    .contact-header p,
    .contact-details p {
        font-size: 0.9rem;
    }
}