/* Hero Section Styling */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    filter: brightness(0.8) contrast(1.1);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
    z-index: 1; /* Above video, below content */
}

.hero h1 {
    margin-bottom: 30px;
    font-size: 25pt;
    font-weight: 650;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    color: #fbfbfb; /* White text */
    position: relative;
    z-index: 2; /* Ensures text is above overlay */
}

.hero p {
    font-size: 1.1rem;
    color: #FFFFFF; /* White text */
    position: relative;
    z-index: 2; /* Ensures text is above overlay */
}

.hero .btn {
    position: relative;
    z-index: 2; /* Ensures button is above overlay */
}

/* Typing Animation for Hero Text */
.typing-text {
    display: inline-block;
    overflow: hidden; /* Hides text beyond width */
    white-space: nowrap; /* Keeps text on one line */
    border-right: 4px solid #FFFFFF; /* Cursor effect */
    animation: typing 5s steps(20), blink 0.75s infinite; /* Typing repeats infinitely */
}

/* Typing Animation Keyframes */
@keyframes typing {
    0% {
        width: 0;
    }
    50% {
        width: 100%; /* Text fully typed at midpoint */
    }
    100% {
        width: 0; /* Resets to empty at end of cycle */
    }
}

/* Blinking Cursor Keyframes */
@keyframes blink {
    0%, 100% {
        border-color: transparent;
    }
    50% {
        border-color: #FFFFFF;
    }
}/* Typing Animation for Hero Text */
.typing-text {
    display: inline-block;
    overflow: hidden; /* Hides text beyond width */
    white-space: nowrap; /* Keeps text on one line */
    border-right: 4px solid #FFFFFF; /* Cursor effect */
    animation: typing 5s steps(20) 1, blink 0.75s infinite; /* Runs once, then stops */
}

/* Typing Animation Keyframes */
@keyframes typing {
    0% {
        width: 0;
    }
    100% {
        width: 100%; /* Text fully typed at end */
    }
}

/* Blinking Cursor Keyframes */
@keyframes blink {
    0%, 100% {
        border-color: transparent;
    }
    50% {
        border-color: #FFFFFF;
    }
}

/* Gradient Animation Keyframes */
@keyframes moveGradient {
    0% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 100% 100%;
    }
    100% {
        background-position: 0% 0%;
    }
}

/* Modern Scrollbar and Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #1E3A8A, #2563EB);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #2563EB, #1E3A8A);
}

/* Global Transitions */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Logo Styling */
.logo {
    height: 60px; /* Increased from 40px to 60px for a bigger logo */
    width: auto; /* Maintains aspect ratio */
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.1); /* Slightly larger on hover */
}

/* Card Styling (Professional Look) */
.service-card, .project-card {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    overflow: hidden;
}

.service-card:hover, .project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(30, 58, 138, 0.3);
}

/* Video Styling */
.card-video-top {
    width: 100%;
    height: 200px; /* Matches original 300x200 placeholder image height */
    object-fit: cover; /* Ensures video fills space without distortion */
    transition: transform 0.5s ease; /* Smooth scaling on hover */
}

/* Zoomed-Out Video for Project Two */
.card-video-top.zoomed-out {
    transform: scale(0.9); /* Increased from 0.8 to 0.9 for a bigger size */
    object-fit: contain; /* Shows full video without cropping, adjusting for phone recording */
}

/* Hover Effect for Videos */
.project-card:hover .card-video-top {
    transform: scale(1.05); /* Default hover zoom-in for all videos */
}

/* Override Hover for Zoomed-Out Video */
.project-card:hover .card-video-top.zoomed-out {
    transform: scale(0.95); /* Increased from 0.85 to 0.95 for a bigger hover size */
}

/* Card Title Styling (Bold with Professional Font) */
/* Card Title Styling (Bold with Gradient) */
/* Card Title Styling (Bold with Gradient) */
.card-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    background: linear-gradient(135deg, #2563EB, #1E3A8A);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
    position: relative;
    padding-bottom: 12px;
}

.card-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: linear-gradient(135deg, #2563EB, #1E3A8A);
    border-radius: 2px;
}

/* For browsers that don't support background-clip: text, fallback color */
.card-title {
    color: #1E3A8A; /* Dark blue fallback to match brand */
}
/* Card Text Styling (Italic Descriptions) */
.card-text {
    font-style: italic; /* Italic as requested */
    color: #333333; /* Dark gray for readability */
    font-size: 1rem;
    text-align: center;
    padding: 5px 10px;
}

/* Navbar Styling */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    background: #000000;
    border-radius: 15px;
    margin: 10px 20px;
}

.nav-link {
    position: relative;
    color: #FFFFFF !important;
    font-size: 1rem;
    transition: font-size 0.3s ease;
}

.nav-link:hover {
    color: #FFFFFF !important;
    font-size: 1.2rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: #FFFFFF;
    bottom: -5px;
    left: 0;
    transition: width 0.3s ease;
}

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

.nav-link.active {
    font-weight: 600;
    color: #FFFFFF !important;
}

.navbar-brand {
    padding: 0.5rem 0;
}

/* Custom Button Styling */
.btn-dark-blue {
    background: linear-gradient(135deg, #1E3A8A, #2563EB);
    color: #FFFFFF;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
}

.btn-dark-blue:hover {
    background: linear-gradient(135deg, #2563EB, #1E3A8A);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
    color: #FFFFFF;
}

/* Pulsating Animation Keyframes */
@keyframes pulse {
    0% {
        transform: scale(1); /* Normal size */
    }
    50% {
        transform: scale(1.1); /* Slightly larger */
    }
    100% {
        transform: scale(1); /* Back to normal */
    }
}

/* Text Color Classes */
.text-dark-blue {
    color: #1E3A8A !important; /* Dark blue text */
}

/* Custom Animation for Section Entry */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Apply Animation on Scroll (Controlled by JS) */
.section-animate {
    opacity: 0;
}

/* Footer Styling */
footer {
    background: linear-gradient(180deg, #000000, #111827);
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

footer a {
    color: #FFFFFF;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

footer a:hover {
    color: #60A5FA;
    transform: translateY(-2px);
}

/* Footer Title Styling */
.footer-title {
    color: #FFFFFF;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    text-align: center;
    position: relative;
    padding-bottom: 8px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #60A5FA, transparent);
}

/* Social Links Styling */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-links a {
    font-size: 1.5rem;
    transition: all 0.3s ease;
    opacity: 0.9;
}

.social-links a:hover {
    opacity: 1;
    transform: translateY(-3px);
}

.social-links a:hover {
    color: #1E3A8A; /* Dark blue on hover */
}

/* Quick Links Box Styling */
.quick-links-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.2rem;
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
}

.quick-links-box li {
    margin-bottom: 12px;
    text-align: center;
}

.quick-links-box a {
    transition: all 0.3s ease;
    display: block;
    padding: 4px 0;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

.quick-links-box a:hover {
    transform: translateX(5px);
    color: #60A5FA !important;
}

/* Hover effect for links inside the box */
.quick-links-box a:hover {
    color: #1E3A8A; /* Dark blue on hover */
}

/* Service Image Styling */
.service-img {
    width: 100%; /* Full width of the card */
    height: 200px; /* Fixed height to match video cards in "Our Work" */
    object-fit: cover; /* Crops image to fit without distortion */
    border-top-left-radius: 8px; /* Matches card's rounded corners */
    border-top-right-radius: 8px;
}
.scroll-arrow {
    animation: bounce 2s infinite;
}
.scroll-arrow a {
    font-size: 2rem;
    text-decoration: none;
    color: white;
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Dropdown Menu Styling */
.dropdown-menu {
    background-color: #1a1d23 !important;
    border: 1px solid #333 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5) !important;
}

.dropdown-item {
    color: #d1d5db !important;
    transition: all 0.3s ease !important;
}

.dropdown-item:hover {
    background-color: #2563EB !important;
    color: #FFFFFF !important;
}

.dropdown-item.active, .dropdown-item:active {
    background-color: #2563EB !important;
    color: #FFFFFF !important;
}

/* Dark mode dropdown styling */
.dark-mode .dropdown-menu {
    background-color: #23272b !important;
    border: 1px solid #31343a !important;
}

.dark-mode .dropdown-item {
    color: #c7d2fe !important;
}

.dark-mode .dropdown-item:hover {
    background-color: #38bdf8 !important;
    color: #181a20 !important;
}