@import url("https://fonts.googleapis.com/css2?family=Orbitron&display=swap");

@font-face {
    font-family: 'Shabnam';
    src: url('Shabnam-Bold-FD.ttf');
}

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

body {
    font-family: 'Roboto', sans-serif;
    color: #fff;
    background: linear-gradient(135deg, #000428, #004e92);
    overflow-x: hidden;
    position: relative;
}

.card p {
    line-height: 1.8;
}

.item p {
    line-height: 1.8;
}

/* Background Animation */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.2), transparent);
    animation: pulse 6s infinite;
    z-index: -1;
}
.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 20px;
    padding: 20px;
}

.card {
    background-color: #002e56;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, background-color 0.3s ease;
    padding: 20px;
    cursor: pointer;
}

.card h2 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.card p {
    font-size: 1rem;
    color: #d8f1ff;
}

.card:hover {
    transform: translateY(-10px);
    background-color: #014886; 
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
    border-radius: 15px;
}

h2 {
    font-size: 2em;
    color: #00e1ff;
    text-shadow: 0 0 10px #00e1ff;
}

p {
    color: #d8f1ff;
    text-align: justify;
    line-height: 2.8;
}

#prof {
    width: 30%;
    border-radius: 50%;
    border: 2px solid #00e1ff;
    box-shadow: 0 0 15px #00e1ff;
}


@keyframes load {
    to {
        width: var(--width);
    }
}

/* Gallery Items */
.gallery {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 15px;
    padding: 15px 0;
}

.gallery::-webkit-scrollbar {
    height: 8px;
}

.gallery::-webkit-scrollbar-thumb {
    background: #00e1ff;
    border-radius: 4px;
}

.gallery::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.6);
}

.item {
    flex: 0 0 auto;
    width: 300px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #00e1ff;
    border-radius: 15px;
    box-shadow: 0 0 15px #00e1ff;
    transition: transform 0.3s, box-shadow 0.3s, opacity 0.3s;
    padding: 5px;
    padding-bottom: 15px;
    opacity: 1;
}

.item img {
    border-radius: 10px;
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.item:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px #00e1ff;
}

.gallery:hover .item {
    opacity: 0.3;
}

.gallery:hover .item:hover {
    opacity: 1;
}

.item p {
    color: #d8f1ff;
    font-size: 1.1em;
    text-align: center;
}

.item:hover ~ .item,
.item:not(:hover) {
    opacity: 0.3;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.7);
    border-top: 1px solid #00e1ff;
}

.social-icons a {
    color: #00e1ff;
    font-size: 24px;
    margin: 0 10px;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #d8f1ff;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .gallery {
        flex-direction: row;
    }

    .item {
        width: 250px;
    }

    footer {
        position: relative;
    }
    
    .card h2 {
        font-size: 1.25rem;
    }
    
    p {
        padding: 0px 8%;
        font-size: 0.9em;
    }
    
    #prof {
        width: 50%;
    }
}

@media (max-width: 480px) {
    
    .gallery {
        flex-direction: row;
    }

    .item {
        width: 250px;
    }
    
    .services {
        grid-template-columns: repeat(auto-fit, minmax(100%, 1fr));
    }
    
    .card h2 {
        font-size: 1rem;
    }

    .card p {
        font-size: 0.9rem;
    }

    footer {
        position: relative;
    }
    
    h2 {
        font-size: 1.5em;
    }

    p {
        padding: 0px 8%;
        font-size: 0.9em;
    }
    
    #prof {
        width: 50%;
    }
    
}
