/* font section */

a,
p,
h1,
h2 {
    font-family: Georgia, serif;
}

/* Basic Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: black;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    /* Glass-like transparency */
    backdrop-filter: blur(10px);
    /* Blurs the background for a glass effect */
    -webkit-backdrop-filter: blur(10px);
    /* Ensures compatibility with Safari */
    color: white;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    /* Keeps the header above all other content */
    box-sizing: border-box;
    /* Ensures padding does not affect width */
}

.logo img {
    height: 60px;
    /* Adjust size as needed */
    width: auto;
    display: block;
    margin: 0 auto;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    position: relative;
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    display: block;
    transition: background-color 0.3s, transform 0.3s;
}

nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-5px);
}

/* Dropdown Menu */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: rgba(255, 255, 255, 0.3);
    min-width: 160px;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s;
}

.dropdown-content a:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        flex-direction: row;
        align-items: flex-start;
    }

    .logo img {
        height: 40px;
    }

    nav ul {
        flex-direction: row;
        width: 100%;
    }

    nav ul li a {
        text-align: left;
    }
}


/* Hero Section Background Image */
.hero-section {
    height: 100vh;
    /* Full viewport height */
    background-image: url('images/bg2.jpg');
    background-size: cover;
    /* Ensures the image covers the entire section */
    background-position: center;
    /* Centers the image */
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding-top: 60px;
    /* Offsets the fixed header height */
}

.hero-button {
    width: auto;
    /* Adjusts to fit the content */
    height: auto;
    /* Adjusts to fit the content */
    font-size: 16px;
    background: transparent;
    border: none;
    position: relative;
    color: #f0f0f0;
    cursor: pointer;
    z-index: 1;
    padding: 15px 30px;
    /* Keep padding consistent with the original */
    display: inline-block;
    /* Matches original display */
    text-align: center;
    /* Center text inside the button */
    white-space: nowrap;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    transition: all .4s;
    text-decoration: none;
}

.hero-button::after,
.hero-button::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: -99999;
    transition: all .4s;
}

.hero-button::before {
    transform: translate(0%, 0%);
    width: 100%;
    height: 100%;
    background: #28282d;
    border-radius: 5px;
    /* Adjusted to match the original border-radius */
}

.hero-button::after {
    transform: translate(10px, 10px);
    width: 35px;
    height: 35px;
    background: #ffffff15;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 50px;
}

.hero-button:hover::before {
    transform: translate(5%, 20%);
    width: 110%;
    height: 110%;
}

.hero-button:hover::after {
    border-radius: 5px;
    /* Adjusted to match the original border-radius */
    transform: translate(0, 0);
    width: 100%;
    height: 100%;
}

.hero-button:active::after {
    transition: 0s;
    transform: translate(0, 5%);
}


/* Ensure Content Below Header Is Not Overlapped */
main {
    padding-top: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        padding-top: 70px;
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .hero-button {
        font-size: 1rem;
    }
}


/* Hero Section Styles */
.hero-content {
    flex: 1;
    max-width: 50%;
    padding-right: 20px;
}

.hero-content h1 {
    font-size: 3rem;
    color: #ffffff;
    margin: 0;
    animation: fadeInDown 1s ease-in-out;
}

.hero-content p {
    font-size: 1.5rem;
    color: #fdfdfd;
    margin-bottom: 20px;
    animation: fadeInUp 1.5s ease-in-out;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
    }

    .hero-content,
    .hero-image {
        max-width: 100%;
        padding: 0;
    }

    .hero-image {
        margin-top: 20px;
    }
}


/* Card Section */
.cards-section {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin: 40px 20px;
}

.card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin: 20px;
    width: calc(33.333% - 40px);
    transition: transform 0.3s ease;
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 20px;
    text-align: center;
}

.card-content h3 {
    margin-top: 0;
    font-size: 1.5rem;
    color: #333;
}

.card-content p {
    font-size: 1rem;
    color: #666;
    margin: 10px 0 20px;
}

.card-content .btn {
    background-color: #333;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    font-size: 1rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.card-content .btn:hover {
    background-color: #555;
}

.card:hover {
    transform: translateY(-10px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .card {
        width: calc(50% - 40px);
    }
}

@media (max-width: 480px) {
    .card {
        width: 100%;
    }
}


/* Footer */
.footer {
    background-color: black;
    color: white;
    padding: 20px 10px;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content p {
    margin: 0;
    font-size: 1rem;
}

.social-media {
    margin-top: 10px;
}

.social-media a {
    margin: 0 10px;
    display: inline-block;
}

.social-media img {
    width: 24px;
    height: 24px;
    vertical-align: middle;
    transition: transform 0.3s;
}

.social-media img:hover {
    transform: scale(1.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .social-media {
        margin-top: 15px;
    }

    .social-media a {
        margin: 0 8px;
    }

    .social-media img {
        width: 20px;
        height: 20px;
    }
}

/* Contact Page Styles */
.contact-section {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 1s ease-in-out;
    margin-top: 80px;
}

.contact-section h1 {
    margin-top: 0;
    font-size: 2rem;
    color: #333;
    text-align: center;
}

.contact-section p {
    font-size: 1.2rem;
    color: #666;
    text-align: center;
    margin-bottom: 20px;
}

.contact-form {
    display: flex;
    flex-direction: column;
}

.contact-form label {
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.contact-form input,
.contact-form textarea {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 15px;
    font-size: 1rem;
}

.contact-form button {
    background-color: #333;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.contact-form button:hover {
    background-color: #555;
    transform: translateY(-3px);
}

/* Rating Section Styling */
.rating-group {
    margin-bottom: 15px;
}

.rating {
    direction: rtl;
    unicode-bidi: bidi-override;
    display: inline-block;
}

.rating input {
    display: none;
}

.rating label {
    font-size: 2rem;
    color: #ddd;
    cursor: pointer;
}

.rating input:checked~label,
.rating label:hover,
.rating label:hover~label {
    color: #f5b301;
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-section {
        padding: 15px;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 0.9rem;
    }

    .contact-form button {
        font-size: 0.9rem;
    }
}

/* About Page Styles */
.about-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0px auto;
    padding: 10px;
    background-color: black;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.about-image {
    flex: 1;
    max-width: 50%;
    padding-right: 20px;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    animation: fadeInDown 1.5s ease-in-out;
}

.about-content {
    flex: 1;
    max-width: 100%;
    padding-left: 20px;
}


.about-content p {
    font-size: 1.2rem;
    color: whitesmoke;
    line-height: 1.6;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease-in-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .about-section {
        flex-direction: column;
        text-align: center;
    }

    .about-image,
    .about-content {
        max-width: 100%;
        padding: 0;
    }

    .about-image {
        padding-bottom: 20px;
    }
}

/* Blog Page Styles */
.blog-section {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0px;
    margin-top: 70px;
}

.blog-section h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: white;
    animation: fadeInDown 1s ease-in-out;
}

.blog-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.blog-card {
    width: 300px;
    margin: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    background-color: #fff;
    transition: transform 0.3s;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.blog-card h2 {
    font-size: 1.5rem;
    color: #333;
    padding: 15px;
    text-align: center;
    margin: 0;
}

.blog-card a {
    text-decoration: none;
    color: inherit;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-cards {
        flex-direction: column;
        align-items: center;
    }

    .blog-card {
        width: 90%;
    }
}

/* Technology Section */
.technology-section {
    text-align: center;
    padding: 10px 5px;
    background-color: black;
}

.technology-section h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: white;
}

/* Technology Slider */
.technology-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #fff;
    padding: 10px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.slide-track {
    display: flex;
    width: calc(250px * 21);
    /* Adjust based on number of icons */
    animation: scroll 90s linear infinite;
}

.slide {
    width: 120px;
    /* Adjust the size of each slide */
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.5s;
}

.slide img {
    max-width: 75%;
    max-height: 75%;
    object-fit: contain;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-250px * 21));
    }

    /* Adjust based on number of icons */
}

/* Manual Sliding Controls */
.technology-slider:hover .slide-track {
    animation-play-state: paused;
    /* Pauses the animation on hover */
}

/* Add some media query for responsiveness */
@media (max-width: 768px) {
    .slide {
        width: 150px;
        height: 150px;
    }

    @keyframes scroll {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(calc(-150px * 21));
        }
    }
}

/* certificate gallery effets */
.caption {
    position: absolute;
    bottom: 5px;
    left: 20px;
    opacity: 0.0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    color: white;
}

.transparent-box {
    height: 250px;
    width: 350px;
    background-color: rgba(0, 0, 0, 0);
    position: absolute;
    top: 0;
    left: 0;
    transition: background-color 0.3s ease;
}

.blog-card1:hover img {
    transform: scale(1.1);
}

.blog-card1:hover .transparent-box {
    background-color: rgba(0, 0, 0, 0.5);
}

.blog-card1:hover .caption {
    transform: translateY(-20px);
    opacity: 1.0;
}

.blog-card1:hover {
    cursor: pointer;
}

.caption>p:nth-child(2) {
    font-size: 0.8em;
}

.opacity-low {
    opacity: 0.5;
}

/* Isolated Heading Section */
.isolated-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: black;
    position: relative;
}

.isolated-heading h1,
.isolated-heading h2 {
    font-size: 2rem;
    color: white;
    margin-left: 10px;
    margin-right: 10px;
    margin-top: 100px;
    animation: fadeInDown 1s ease-in-out;
}

.isolated-heading1 h1,
.isolated-heading1 h2 {
    font-size: 2rem;
    color: white;
    margin-left: 10px;
    margin-right: 10px;
    text-align: center;
    animation: fadeInDown 1s ease-in-out;
}

/*certificate*/
.blog-section1 {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0px;
    margin-top: 0px;
}

.blog-cards1 {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.blog-card1 {
    width: 350px;
    height: 250px;
    margin: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    background-color: #fff;
    transition: transform 0.3s;
}

.blog-card1:hover {
    transform: translateY(-5px);
}

.blog-card1 img {
    height: 250px;
    width: 350px;
    object-fit: cover;
}

.blog-card1 a {
    text-decoration: none;
    color: inherit;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-cards1 {
        flex-direction: column;
        align-items: center;
    }

    .blog-card1 {
        width: 90%;
    }
}