:root {
    --primary-color: #5e2488;
    --secondary-color: #41e0ab;
    --dark-color: #212121;
    --light-color: #FAFAFA;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Tajawal', sans-serif;
    background-color: var(--light-color);
    color: var(--dark-color);
}

/* Header */
.navbar-brand img {
    transition: transform 0.3s ease;
}
.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link.active,
.nav-link:hover {
    color: var(--primary-color) !important;
}

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

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6));
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 120px 0;
    color: white;
}

.hero-section h1 {
    font-weight: 700;
}

/* Buttons */
.btn {
    transition: all 0.3s ease;
    border-radius: 25px;
    padding: 10px 25px;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #4a1d6b;
    border-color: #4a1d6b;
    transform: translateY(-3px);
}

/* Sections */
section {
    padding: 80px 0;
    overflow-x: hidden; /* Prevent horizontal scrollbar from animations */
}

section h2 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 40px;
}

/* Service Icons */
.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    width: 100px;
    height: 100px;
    text-align: center;
    border-radius: 50%;
    background-color: #f0e9f7;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card:hover .service-icon {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

/* Cards */
.card {
    border: none;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

/* Page Content */
.page-content h4 {
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
}

/* Footer */
footer {
    background-color: var(--dark-color);
}

.footer-title {
    color: var(--secondary-color);
}

.footer-brand-link {
    text-decoration: none;
}

.footer-brand-link strong {
    color: var(--secondary-color);
    transition: color 0.3s ease;
}

.footer-brand-link:hover strong {
    color: var(--light-color);
}

footer a {
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--secondary-color);
}

/* Animation classes */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in {
    transform: translateY(20px);
}
.fade-in-down {
    transform: translateY(-50px);
}
.fade-in-up {
    transform: translateY(50px);
}
.fade-in-left {
    transform: translateX(50px);
}
.fade-in-right {
    transform: translateX(-50px);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* About Image Hover Effect */
.about-image-container {
    position: relative;
    overflow: hidden; /* To keep pseudo-elements within the rounded corners */
}

.about-image-container img {
    display: block;
    width: 100%;
    transition: transform 0.5s ease, filter 0.5s ease;
}

.about-image-container:hover img {
    transform: scale(1.1);
    filter: blur(2px) brightness(0.6);
}

.about-image-container::after {
    content: '\f577'; /* Font Awesome hard-hat icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    color: var(--secondary-color);
    font-size: 5rem;
    text-shadow: 0 0 15px var(--secondary-color);
    opacity: 0;
    transition: all 0.4s ease-out;
    will-change: transform, opacity;
}

.about-image-container:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    animation: pulse-fingerprint 2.5s infinite ease-in-out;
}

@keyframes pulse-fingerprint {
    0%, 100% {
        opacity: 1;
        text-shadow: 0 0 15px var(--secondary-color);
    }
    50% {
        opacity: 0.7;
        text-shadow: 0 0 25px var(--secondary-color);
    }
}

/* Vision Image Hover Effect */
.vision-image-container {
    position: relative;
    overflow: hidden; /* To keep pseudo-elements within the rounded corners */
}

.vision-image-container img {
    display: block; /* Remove any extra space below the image */
    width: 100%;
    transition: transform 0.5s ease, filter 0.5s ease;
}

.vision-image-container:hover img {
    transform: scale(1.1); /* Slightly zoom in on the image */
    filter: blur(2px) brightness(0.6); /* Blur and darken the image */
}

/* Eye Icon Overlay */
.vision-image-container::after {
    content: '\f06e'; /* Font Awesome eye icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    color: var(--secondary-color);
    font-size: 5rem;
    text-shadow: 0 0 15px var(--secondary-color);
    opacity: 0;
    transition: all 0.4s ease-out;
    will-change: transform, opacity;
}

.vision-image-container:hover::before,
.vision-image-container:hover::after {
    opacity: 1;
}

.vision-image-container:hover::after {
    transform: translate(-50%, -50%) scale(1);
    animation: flash-eye 2s infinite ease-in-out;
}

@keyframes galaxy-travel {
    0% { transform: translate(0%, 0%); }
    25% { transform: translate(-25%, -10%); }
    50% { transform: translate(-50%, -25%); }
    75% { transform: translate(-20%, -40%); }
    100% { transform: translate(0%, 0%); }
}

@keyframes flash-eye {
    0%, 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.5; transform: translate(-50%, -50%) scale(0.95); }
}


/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0;
        background-attachment: scroll;
    }

    .hero-section h1 {
        font-size: 2.2rem;
    }

    .navbar-nav {
        text-align: center;
        padding-top: 10px;
    }
}