* {
    font-family: 'Inter', sans-serif;
}

.logo-font {
    font-family: 'Pacifico', cursive;
}

.hero-bg {
    background: linear-gradient(135deg, #0f3145 0%, #1ca161 100%);
    position: relative;
    overflow: hidden;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://images.unsplash.com/photo-1551288049-bebda4e38f71?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
}

.scroll-smooth {
    scroll-behavior: smooth;
}

.card-hover {
    transition: all 0.4s ease;
}

.card-hover:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.nav-scrolled {
    background-color: rgba(15, 49, 69, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* New Animation Keyframes */
@keyframes typewriter {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes blinkCursor {
    from {
        border-right-color: rgba(255, 255, 255, 0.75);
    }

    to {
        border-right-color: transparent;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translate3d(0, -40px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale3d(0.3, 0.3, 0.3);
    }

    50% {
        opacity: 1;
    }
}

@keyframes slideInBlurredTop {
    0% {
        transform: translateY(-1000px) scaleY(2.5) scaleX(0.2);
        transform-origin: 50% 0%;
        filter: blur(40px);
        opacity: 0;
    }

    100% {
        transform: translateY(0) scaleY(1) scaleX(1);
        transform-origin: 50% 50%;
        filter: blur(0);
        opacity: 1;
    }
}

@keyframes textFocusIn {
    0% {
        filter: blur(12px);
        opacity: 0;
    }

    100% {
        filter: blur(0);
        opacity: 1;
    }
}

@keyframes trackingInExpand {
    0% {
        letter-spacing: -0.5em;
        opacity: 0;
    }

    40% {
        opacity: 0.6;
    }

    100% {
        opacity: 1;
    }
}

@keyframes scaleUpCenter {
    0% {
        transform: scale(0.5);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes rotateScaleUp {
    0% {
        transform: scale(1) rotateZ(0);
    }

    50% {
        transform: scale(1.2) rotateZ(180deg);
    }

    100% {
        transform: scale(1) rotateZ(360deg);
    }
}

@keyframes flipInHorBottom {
    0% {
        transform: rotateX(80deg);
        opacity: 0;
    }

    100% {
        transform: rotateX(0);
        opacity: 1;
    }
}

@keyframes swingInTopFwd {
    0% {
        transform: rotateX(-100deg);
        transform-origin: top;
        opacity: 0;
    }

    100% {
        transform: rotateX(0deg);
        transform-origin: top;
        opacity: 1;
    }
}

@keyframes slideInEllipticTopFwd {
    0% {
        transform: translateY(-600px) rotateX(-30deg) scale(0);
        transform-origin: 50% 100%;
        opacity: 0;
    }

    100% {
        transform: translateY(0) rotateX(0) scale(1);
        transform-origin: 50% 1400px;
        opacity: 1;
    }
}

@keyframes vibrate {
    0% {
        transform: translate(0);
    }

    20% {
        transform: translate(-2px, 2px);
    }

    40% {
        transform: translate(-2px, -2px);
    }

    60% {
        transform: translate(2px, 2px);
    }

    80% {
        transform: translate(2px, -2px);
    }

    100% {
        transform: translate(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(28, 161, 97, 0.1);
    animation: float 15s infinite linear;
}

.shape:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 10%;
    left: 10%;
    animation-duration: 20s;
}

.shape:nth-child(2) {
    width: 120px;
    height: 120px;
    top: 70%;
    left: 80%;
    animation-duration: 25s;
    animation-delay: 2s;
}

.shape:nth-child(3) {
    width: 60px;
    height: 60px;
    top: 40%;
    left: 85%;
    animation-duration: 18s;
    animation-delay: 1s;
}

.shape:nth-child(4) {
    width: 100px;
    height: 100px;
    top: 80%;
    left: 15%;
    animation-duration: 22s;
    animation-delay: 3s;
}

.shape:nth-child(5) {
    width: 50px;
    height: 50px;
    top: 20%;
    left: 75%;
    animation-duration: 16s;
    animation-delay: 4s;
}

.gradient-text {
    background: linear-gradient(90deg, #1ca161, #0f3145);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.service-icon {
    transition: all 0.4s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    color: #1ca161;
}

.stats-counter {
    font-size: 3rem;
    font-weight: 700;
    color: #1ca161;
}

.tech-stack-icon {
    transition: all 0.3s ease;
}

.tech-stack-icon:hover {
    transform: translateY(-5px);
}

/* Enhanced Hover Animations */
.hover-lift {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.hover-glow:hover {
    box-shadow: 0 0 15px rgba(28, 161, 97, 0.5);
}

.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

.hover-rotate:hover {
    transform: rotate(5deg);
}

.hover-shake:hover {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

.hover-pulse:hover {
    animation: pulse 0.5s ease-in-out;
}

.hover-border-animation {
    position: relative;
    overflow: hidden;
}

.hover-border-animation::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #1ca161, transparent);
    transition: left 0.5s ease;
}

.hover-border-animation:hover::before {
    left: 100%;
}

.hover-fill {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.hover-fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: #1ca161;
    transition: width 0.4s ease;
    z-index: -1;
}

.hover-fill:hover::before {
    width: 100%;
}

.hover-fill:hover {
    color: white;
}

.hover-slide {
    position: relative;
    overflow: hidden;
}

.hover-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.hover-slide:hover::before {
    left: 100%;
}

.hover-underline {
    position: relative;
}

.hover-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #1ca161;
    transition: width 0.3s ease;
}

.hover-underline:hover::after {
    width: 100%;
}

.hover-3d {
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.5s ease;
}

.hover-3d:hover {
    transform: rotateY(10deg) rotateX(5deg);
}

.hover-gradient {
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
    transition: background 0.5s ease;
}

.hover-gradient:hover {
    background: linear-gradient(135deg, #1ca161, #0f3145);
    color: white;
}

.hover-magnetic {
    transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
}

.hover-magnetic:hover {
    transform: scale(1.05);
}

.hover-ripple {
    position: relative;
    overflow: hidden;
}

.hover-ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(28, 161, 97, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.hover-ripple:hover::after {
    width: 300px;
    height: 300px;
}

.hover-text-reveal {
    position: relative;
    overflow: hidden;
}

.hover-text-reveal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1ca161;
    transform: translateX(-100%);
    transition: transform 0.4s ease;
    z-index: -1;
}

.hover-text-reveal:hover::before {
    transform: translateX(0);
}

.hover-text-reveal:hover {
    color: white;
}

.hover-double-border {
    position: relative;
    padding: 10px 20px;
}

.hover-double-border::before,
.hover-double-border::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    transition: all 0.3s ease;
}

.hover-double-border::before {
    top: 0;
    left: 0;
    border-top: 2px solid transparent;
    border-left: 2px solid transparent;
}

.hover-double-border::after {
    bottom: 0;
    right: 0;
    border-bottom: 2px solid transparent;
    border-right: 2px solid transparent;
}

.hover-double-border:hover::before,
.hover-double-border:hover::after {
    width: 100%;
    height: 100%;
    border-color: #1ca161;
}

/* New Animation Classes */
.typewriter-container {
    display: inline-block;
    position: relative;
}

.typewriter-text {
    overflow: hidden;
    border-right: 3px solid rgba(255, 255, 255, 0.75);
    white-space: nowrap;
    margin: 0 auto;
    animation: typewriter 4s steps(40) 1s 1 normal both, blinkCursor 500ms steps(40) infinite normal;
}

.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.loading-bar {
    height: 4px;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    background: linear-gradient(to right, #1ca161, #0f3145);
    transform-origin: 0 50%;
    animation: loading 2s ease-in-out infinite;
}

@keyframes loading {
    0% {
        transform: scaleX(0);
    }

    50% {
        transform: scaleX(0.5);
    }

    100% {
        transform: scaleX(0);
    }
}

.stagger-animation>* {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.stagger-animation.animated>* {
    opacity: 1;
    transform: translateY(0);
}

.stagger-animation.animated>*:nth-child(1) {
    transition-delay: 0.1s;
}

.stagger-animation.animated>*:nth-child(2) {
    transition-delay: 0.2s;
}

.stagger-animation.animated>*:nth-child(3) {
    transition-delay: 0.3s;
}

.stagger-animation.animated>*:nth-child(4) {
    transition-delay: 0.4s;
}

.stagger-animation.animated>*:nth-child(5) {
    transition-delay: 0.5s;
}

.stagger-animation.animated>*:nth-child(6) {
    transition-delay: 0.6s;
}

.morph-shape {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: morph 8s ease-in-out infinite;
    background: linear-gradient(45deg, #1ca161, #0f3145);
    opacity: 0.1;
}

@keyframes morph {
    0% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }

    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }

    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
}

.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.text-shadow-lg {
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.08);
}

/* Improved Mobile Responsiveness */
@media (max-width: 768px) {
    .hero-bg {
        min-height: 80vh;
    }

    .hero-bg h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .stats-counter {
        font-size: 2.5rem;
    }

    .floating-shapes .shape {
        display: none;
    }

    .floating-shapes .shape:nth-child(1),
    .floating-shapes .shape:nth-child(5) {
        display: block;
    }
}

/* Header scroll effects - White background with dark text */
#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* Change text color to dark when scrolled */
#navbar.scrolled .text-white {
    color: #1f2937 !important;
    /* dark gray color */
}

#navbar.scrolled .hover\:text-primary:hover {
    color: #1ca161 !important;
    /* primary color */
}

/* Active state remains primary color */
#navbar.scrolled .text-primary {
    color: #1ca161 !important;
}

/* Mobile menu button text color */
#navbar.scrolled .ri-menu-line {
    color: #1f2937 !important;
}

/* Mobile menu background remains dark */
#mobile-menu {
    background: rgba(15, 49, 69, 0.98) !important;
}

/* Optional: Add smooth transition for text color */
#navbar .text-white {
    transition: color 0.3s ease;
}

/* Header scroll effects - White background with dark text */
#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* Specific selector for navigation links */
#navbar.scrolled a.text-white {
    color: #1f2937 !important;
}

#navbar.scrolled a.text-white:hover {
    color: #1ca161 !important;
}

#navbar.scrolled a.text-primary {
    color: #1ca161 !important;
}

/* Mobile menu button */
#navbar.scrolled #mobile-menu-btn .ri-menu-line {
    color: #1f2937 !important;
}

/* Mobile menu remains dark */
#mobile-menu {
    background: rgba(15, 49, 69, 0.98) !important;
}