:root {
    --primary-glow: #4f46e5;
    --secondary-glow: #ec4899;
    --bg-dark: #0f172a;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

body {
    background-color: var(--bg-dark);
    color: #ffffff;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Fixed Animated Background */
.fixed-bg {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    background: radial-gradient(circle at top left, #1e293b, #0f172a);
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 10s infinite ease-in-out alternate;
}
.orb-1 { width: 400px; height: 400px; background: var(--primary-glow); top: -100px; left: -100px; }
.orb-2 { width: 300px; height: 300px; background: var(--secondary-glow); bottom: -50px; right: -50px; animation-delay: -5s; }

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 50px) scale(1.1); }
}

/* Navbar */
.navbar-glass {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}
.navbar-glass.scrolled {
    background: rgba(15, 23, 42, 0.95);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.navbar-brand img {
    height: 100px;
    margin-top: -15px;
    margin-bottom: -15px;
}
.nav-link {
    color: rgba(255,255,255,0.7) !important;
    font-weight: 500;
    margin: 0 10px;
    transition: 0.3s;
}
.nav-link:hover, .nav-link.active {
    color: #fff !important;
    text-shadow: 0 0 10px rgba(255,255,255,0.4);
}

/* Glass Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    margin-bottom: 2rem;
}

/* Typography & Elements */
h1 { font-weight: 800; background: -webkit-linear-gradient(#fff, #94a3b8); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
h2 { font-weight: 700; color: #fff; margin-bottom: 1.5rem; }

.badge-coming-soon {
    background: linear-gradient(90deg, #6366f1, #a855f7);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
    animation: pulse 2s infinite;
    display: inline-block;
    margin-bottom: 1rem;
}
@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(168, 85, 247, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(168, 85, 247, 0); }
}

/* Services */
.service-icon { font-size: 2.5rem; margin-bottom: 1rem; background: linear-gradient(45deg, #60a5fa, #c084fc); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.service-item { transition: transform 0.3s ease; padding: 1rem; }
.service-item:hover { transform: translateY(-5px); }
.service-text { font-size: 0.9rem; color: #cbd5e1; font-weight: 500; }

/* Buttons */
.btn-glow {
    position: relative;
    padding: 12px 40px;
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    overflow: hidden;
    transition: 0.4s;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
}
.btn-glow::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 0%; height: 100%;
    background: linear-gradient(90deg, #ea580c, #f97316);
    z-index: -1;
    transition: 0.4s;
    border-radius: 50px;
}
.btn-glow:hover::before { width: 100%; }
.btn-glow:hover { border-color: transparent; box-shadow: 0 0 25px rgba(234, 88, 12, 0.5); color: white; }

/* Secondary Button */
.btn-outline-glow {
    padding: 12px 40px;
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    transition: 0.3s;
    display: inline-block;
}
.btn-outline-glow:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    color: #fff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

/* Countdown */
.countdown-box {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 1rem;
    min-width: 85px;
    backdrop-filter: blur(10px);
    text-align: center;
    transition: transform 0.3s;
}
.countdown-box:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, 0.3); }
.countdown-number { font-size: 2rem; font-weight: 800; background: linear-gradient(to bottom, #fff, #cbd5e1); -webkit-background-clip: text; -webkit-text-fill-color: transparent; line-height: 1.2; }
.countdown-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; color: #94a3b8; }

/* Forms */
.form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
}
.form-control:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: #818cf8;
    color: white;
    box-shadow: 0 0 0 0.25rem rgba(79, 70, 229, 0.25);
}
.form-control::placeholder { color: rgba(255,255,255,0.4); }

.form-select {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}
.form-select:focus {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #818cf8;
    color: white;
    box-shadow: 0 0 0 0.25rem rgba(79, 70, 229, 0.25);
}
.form-select option {
    background-color: #0f172a;
    color: white;
}

/* Layout Helpers */
.page-container {
    padding-top: 80px;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Scrolling Page Wrapper */
.content-wrapper {
    padding-top: 80px;
    padding-bottom: 60px;
    min-height: 100vh;
}

/* Feature Cards */
.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2.5rem;
    transition: 0.3s;
    height: 100%;
    animation: fade-in-up 0.8s ease-in-out forwards;
    opacity: 0;
    transform: translateY(20px);
}
.feature-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer */
.glass-footer {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--glass-border);
    padding: 2rem 0;
    margin-top: auto;
    text-align: center;
    color: rgba(255,255,255,0.6);
}

/* Carousel */
#heroCarousel .carousel-item {
    transition: opacity 1s ease-in-out;
}

#heroCarousel .carousel-item {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: block;
}

#heroCarousel .carousel-item.active {
    opacity: 1;
    position: relative;
}
#heroCarousel .carousel-control-prev-icon,
#heroCarousel .carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
}
/* Added Animations */

/* Card fade-in animation */
.glass-card, .feature-card {
    animation: fade-in-up 0.8s ease-in-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Button pop effect */
.btn-glow:hover, .btn-outline-glow:hover {
    transform: scale(1.05);
    transition: transform 0.2s ease-in-out;
}

/* Service card hover effect */
.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

/* Service icon hover effect */
.service-icon:hover {
    transform: scale(1.1);
    filter: brightness(1.2);
    transition: transform 0.3s, filter 0.3s;
}

@keyframes pulse-animation {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(234, 88, 12, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(234, 88, 12, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(234, 88, 12, 0);
    }
}

.btn-glow {
    animation: pulse-animation 2s infinite;
}

/* Reveal on Scroll */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Image */
.hero-img {
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
    width: 100%;
    height: 400px;
    object-fit: cover;
}
.hero-img:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.02);
}

/* Service Card with Image */
.service-card-img {
    height: 200px;
    width: 100%;
    object-fit: cover;
    border-radius: 20px 20px 0 0;
    transition: transform 0.5s ease;
}
.feature-card:hover .service-card-img {
    transform: scale(1.05);
}
.feature-card {
    overflow: hidden; /* Ensure image zoom stays inside */
}

/* Hero Animations */
.carousel-item.active .animate-up {
    animation: fadeInUp 0.8s ease-out forwards;
}
.carousel-item.active .animate-right {
    animation: fadeInRight 1s ease-out forwards;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Tech Stack Section */
.tech-stack-container {
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    padding: 3rem 0;
    margin: 4rem 0;
    overflow: hidden;
}
.tech-icon {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 1rem;
    cursor: pointer;
    animation: float-slow 4s ease-in-out infinite;
}
.tech-icon:hover {
    color: #fff;
    transform: translateY(-5px) scale(1.1);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
    animation-play-state: paused;
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.tech-icon:nth-child(odd) { animation-duration: 5s; }
.tech-icon:nth-child(even) { animation-duration: 6s; }

/* Process Steps */
.process-step {
    text-align: center;
    padding: 2rem 1.5rem;
    position: relative;
    transition: transform 0.3s ease;
}
.process-step:hover {
    transform: translateY(-5px);
}
.step-number {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, var(--primary-glow), var(--secondary-glow));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    margin: 0 auto 1.5rem;
    box-shadow: 0 0 15px rgba(79, 70, 229, 0.4);
}
.step-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    background: linear-gradient(to bottom, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Stats Section */
.stat-item {
    text-align: center;
    padding: 1.5rem;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}
@media (max-width: 768px) {
    .stat-item { border-right: none; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
    .stat-item:last-child { border-bottom: none; }
}
.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, #fff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Horizontal Scroll Projects */
.scrolling-wrapper {
    overflow: hidden;
    padding: 1rem 0 2rem 0;
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}
.scrolling-track {
    display: flex;
    width: max-content;
    animation: scroll-loop 40s linear infinite;
}
.scrolling-wrapper:hover .scrolling-track {
    animation-play-state: paused;
}
.slide-group {
    display: flex;
    gap: 2rem;
    padding-right: 2rem;
}
@keyframes scroll-loop {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.scrolling-card {
    flex: 0 0 auto;
    width: 320px;
    transition: transform 0.3s ease;
}
.scrolling-card:hover {
    transform: translateY(-5px);
}

/* Testimonial Carousel */
.testimonial-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-glow);
    margin-bottom: 1.5rem;
}
.testimonial-text {
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Service Flip Card */
.service-flip-card {
    background-color: transparent;
    perspective: 1000px;
    height: 450px;
    margin-bottom: 1rem;
    animation: fade-in-up 0.8s ease-in-out forwards;
    opacity: 0;
}

.service-flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: left;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    border-radius: 20px;
}

.service-flip-card:hover .service-flip-inner {
    transform: rotateY(180deg);
}

.service-flip-front, .service-flip-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.service-flip-front {
    z-index: 2;
    display: flex;
    flex-direction: column;
}

.service-flip-back {
    transform: rotateY(180deg);
    background: rgba(15, 23, 42, 0.98);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    border: 1px solid var(--primary-glow);
}

/* Flip Animations */
.flip-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, var(--primary-glow), var(--secondary-glow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.anim-bounce { animation: bounce-icon 2s infinite; }
.anim-spin { animation: spin-icon 4s linear infinite; }
.anim-pulse-icon { animation: pulse-icon 2s infinite; }
.anim-shake { animation: shake-icon 2s infinite; }
.anim-float-icon { animation: float-icon 3s ease-in-out infinite; }

@keyframes bounce-icon {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-20px);}
    60% {transform: translateY(-10px);}
}
@keyframes spin-icon { 100% { transform: rotate(360deg); } }
@keyframes shake-icon {
    0%, 100% {transform: rotate(0deg);}
    25% {transform: rotate(-10deg);}
    75% {transform: rotate(10deg);}
}
@keyframes float-icon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}
@keyframes pulse-icon {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Intl Tel Input Dark Theme Overrides */
.iti { width: 100%; }
.iti__country-list {
    background-color: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    scrollbar-color: var(--primary-glow) #0f172a;
}
.iti__country.iti__highlight {
    background-color: rgba(255, 255, 255, 0.1);
}
.iti__selected-dial-code {
    color: #cbd5e1;
}

/* Modal Customization */
.modal-content.glass-card {
    background: rgba(15, 23, 42, 0.98);
    padding: 0; /* Reset padding for modal content */
}
.modal-backdrop.show {
    backdrop-filter: blur(5px);
}
.modal.fade .modal-dialog {
    transform: scale(0.8);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy zoom effect */
}
.modal.show .modal-dialog {
    transform: scale(1);
    opacity: 1;
}