body {
    font-family: 'Roboto', sans-serif;
    color: #333;
    line-height: 1.6;
    scroll-behavior: smooth;
    /* Enables smooth scrolling */
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #007bff;
    /* Keep your background color */
    color: white;
    text-align: center;
}

/* Circular Profile Image */
.profile-img {
    width: 250px;
    /* Adjust size as needed */
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid white;
    /* Optional white border */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    /* Add subtle shadow */
}

/* Ensure alignment on larger screens */
@media (min-width: 992px) {
    .hero .row {
        display: flex;
        align-items: center;
        text-align: left;
    }
}

.display-3 {
    font-size: 3rem;
    font-weight: bold;
}

.text-primary {
    color: #030905 !important;
    font-weight: bold;
    text-transform: uppercase;
}

#typed-text {
    font-size: 2rem;
    font-weight: lighter;
}

.typed-cursor {
    font-size: 2rem;
    color: white;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.btn-light {
    background-color: #fff;
    color: #333;
}

.btn-outline-light {
    color: #fff;
    border-color: #fff;
}

.btn-outline-light:hover {
    background-color: #fff;
    color: #333;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5em;
}

.nav-link {
    font-weight: bold;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #ccc;
}

/* Smooth Sticky Navbar */
.navbar {
    position: fixed;
    top: -80px; /* Initially hidden */
    left: 0;
    width: 100%;
    background: rgba(94, 83, 83, 0.734); /* Slight transparency */
    padding: 15px 0;
    transition: top 0.6s ease-in-out, background 0.3s ease-in-out;
    z-index: 1000;
}

/* Visible Navbar */
.navbar.visible {
    top: 0;
    background: rgba(0, 0, 0, 0.9); /* Slightly darker when visible */
}

/* Navbar Links Smooth Transition */
.navbar-nav .nav-link {
    transition: color 0.3s ease-in-out;
}

.navbar-nav .nav-link:hover {
    color: #249d14 !important;
}


/* Footer Styling */
.footer {
    background-color: #222; /* Dark color to match the theme */
    color: white;
    padding: 40px 0;
    text-align: center;
    font-size: 1rem;
}

/* Social Links */
.footer .social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 15px;
}

.footer .social-links a {
    display: inline-block;
    transition: transform 0.3s ease-in-out;
}

.footer .social-links img {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease-in-out, opacity 0.3s;
    border-radius: 50%; /* Rounded icons */
}

.footer .social-links img:hover {
    transform: scale(1.2);
    opacity: 0.8;
}

/* Footer Copyright Text */
.footer p {
    margin-top: 10px;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer {
        font-size: 0.9rem;
    }
}


.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Language Toggle */
.language-toggle {
    display: flex;
    gap: 10px;
}

.language-toggle button {
    border: none;
    background-color: transparent;
    color: white;
    cursor: pointer;
    font-weight: bold;
    transition: color 0.3s ease;
}

.language-toggle button:hover {
    color: #249d14;
}

/* Push transition effect */
.section {
    opacity: 0;
    transform: translateX(-100%);
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.section.active {
    opacity: 1;
    transform: translateX(0);
}

@keyframes waveFlag {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.language-bar {
    position: relative;
    padding: 15px;
    color: white;
    font-weight: bold;
    border-radius: 10px;
    margin-bottom: 15px;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: waveFlag 3s infinite linear;
    /* Flag animation */
}

.language-bar span {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.language-bar:hover {
    transform: scale(1.05);
    /* Grows slightly */
    box-shadow: 0 8px 15px rgba(255, 255, 255, 0.3);
}

/* Progress Bar Styling */
.progress {
    height: 25px;
    border-radius: 5px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.3);
    /* Transparent white for contrast */
}


/* Flag-Themed Progress Bars */
.progress-bar {
    height: 100%;
    line-height: 25px;
    font-size: 1rem;
    font-weight: bold;
    color: black !important;
    /* Ensures black text */
    text-align: center;
}

.progress-bar:hover {
    transform: scaleX(1.1);
    /* Expands width slightly */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Arabic (Egypt) Flag Colors */
.arabic-bar {
    background: linear-gradient(to right, #ce1126 33%, #ffffff 33%, #ffffff 66%, #000000 66%);
}

/* English (UK) Flag Colors */
.english-bar {
    background: linear-gradient(to right, #00247d 50%, #ffffff 50%);
}

/* Dutch (Netherlands) Flag Colors */
.dutch-bar {
    background: linear-gradient(to right, #21468b 33%, #ffffff 33%, #ffffff 66%, #ae1c28 66%);
}

/* German Flag Colors */
.german-bar {
    background: linear-gradient(to right, #000000 33%, #dd0000 33%, #dd0000 66%, #ffcc00 66%);
}

/* Language transition effect */
.lang {
    display: inline-block;
    opacity: 1;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.lang.hide {
    opacity: 0;
    transform: translateY(20px);
}

.lang.show {
    opacity: 1;
    transform: translateY(0);
}
/* Hover effect for the navbar brand (your name) */
/* Hover effect for navbar brand with letter-by-letter animation */
.hover-effect span {
    display: inline-block;
    transition: color 0.3s ease-in-out, transform 0.3s ease-in-out;
}

/* When hovered, letters change color one by one */
.hover-effect:hover span {
    color: #249d14;
    transform: translateY(-5px);
}

/* Add delay effect to each letter */
.hover-effect span:nth-child(1) { transition-delay: 0s; }
.hover-effect span:nth-child(2) { transition-delay: 0.05s; }
.hover-effect span:nth-child(3) { transition-delay: 0.1s; }
.hover-effect span:nth-child(4) { transition-delay: 0.15s; }
.hover-effect span:nth-child(5) { transition-delay: 0.2s; }
.hover-effect span:nth-child(6) { transition-delay: 0.25s; }
.hover-effect span:nth-child(7) { transition-delay: 0.3s; }
.hover-effect span:nth-child(8) { transition-delay: 0.35s; }
.hover-effect span:nth-child(9) { transition-delay: 0.4s; }
.hover-effect span:nth-child(10) { transition-delay: 0.45s; }
.hover-effect span:nth-child(11) { transition-delay: 0.5s; }
.hover-effect span:nth-child(12) { transition-delay: 0.55s; }

