/* 
* Flione IT - Main Stylesheet
* Version: 1.0
*/

/* ===== GENERAL STYLES ===== */
:root {
    --primary-color: #0056b3;
    --secondary-color: #6c757d;
    --accent-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --white-color: #ffffff;
    --black-color: #000000;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Nunito', sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand,
.section-title h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
}

.card-title,
.feature-box h4,
.service-card h4,
.counter-box .counter-text,
.btn {
    font-family: 'Quicksand', sans-serif;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: #003d7a;
}

.btn {
    border-radius: 4px;
    /* Softer, rounded buttons */
    padding: 0.6rem 2rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    /* Smooth spring-like transition */
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #004494;
    border-color: #004494;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

.section-padding {
    padding: 100px 0;
}

.section-title {
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
    margin-bottom: 20px;
    padding-bottom: 20px;
}

.section-title h2:after {
    content: '';
    position: absolute;
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    bottom: 0;
    left: 0;
}

.section-title.text-center h2:after {
    left: 50%;
    transform: translateX(-50%);
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-light-blue {
    background-color: #e6f2ff;
}

/* Rectangular Button Utility */
.btn-rect {
    border-radius: 4px !important;
}

.btn-contact-cta {
    border-radius: 4px !important;
}

/* ===== HEADER ===== */
.top-bar {
    font-size: 0.9rem;
}

.header {
    transition: var(--transition);
}

.navbar {
    padding: 5px 0;
}

.navbar-brand img {
    max-height: 40px;
}

.navbar-light .navbar-nav .nav-link {
    color: #333;
    font-weight: 500;
    padding: 0.5rem 1rem;
    position: relative;
}

.navbar-light .navbar-nav .nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    transition: var(--transition);
}

.navbar-light .navbar-nav .nav-link:hover:after,
.navbar-light .navbar-nav .nav-link.active:after {
    width: 70%;
}

.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary-color);
}

/* Navbar Layout Fixes for Desktop */
@media (min-width: 992px) {
    .navbar-expand-lg .navbar-collapse {
        display: flex !important;
        flex-basis: auto;
    }

    .navbar-expand-lg .navbar-nav {
        flex-direction: row;
        align-items: center;
        flex-wrap: nowrap;
        white-space: nowrap;
    }

    .navbar-expand-lg .navbar-nav .nav-item {
        padding-left: 5px;
        padding-right: 5px;
    }

    .navbar-expand-lg .navbar-nav .nav-link {
        padding-right: 0.5rem !important;
        padding-left: 0.5rem !important;
        font-size: 0.95rem;
    }

    /* Specific adjustment for the contact button to ensure it fits */
    .navbar-expand-lg .navbar-nav .nav-item:last-child {
        margin-left: 5px;
    }

    .btn-contact-cta {
        padding: 8px 20px !important;
        font-size: 0.9rem !important;
        white-space: nowrap;
    }
}

/* ===== HERO CAROUSEL ===== */
.hero-carousel {
    position: relative;
}

.hero-carousel .carousel-item {
    height: 750px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-carousel .carousel-caption {
    bottom: auto;
    top: 50%;
    transform: translateY(-50%);
    max-width: 700px;
    margin: 0 auto;
    padding: 30px;
    text-align: center;
    left: 0;
    right: 0;
}

.hero-carousel .carousel-caption h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    animation-delay: 0.3s;
}

.hero-carousel .carousel-caption p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    animation-delay: 0.6s;
}

.hero-carousel .carousel-caption .btn {
    animation-delay: 0.9s;
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
}

.hero-carousel .carousel-indicators {
    bottom: 30px;
}

.hero-carousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
}

.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: var(--transition);
}

.hero-carousel:hover .carousel-control-prev,
.hero-carousel:hover .carousel-control-next {
    opacity: 1;
}

.hero-carousel .carousel-control-prev {
    left: 20px;
}

.hero-carousel .carousel-control-next {
    right: 20px;
}

/* ===== FEATURES SECTION ===== */
.feature-box {
    padding: 30px;
    border-radius: 15px;
    /* Softer corners */
    box-shadow: var(--box-shadow);
    transition: all 0.4s ease;
    height: 100%;
    background: white;
    border-bottom: 4px solid transparent;
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-bottom-color: var(--primary-color);
}

.feature-box .feature-icon {
    width: 80px;
    height: 80px;
    background: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: var(--primary-color);
    font-size: 2rem;
    transition: var(--transition);
}

.feature-box:hover .feature-icon {
    background: var(--primary-color);
    color: white;
}

.feature-box h4 {
    margin-bottom: 15px;
    font-weight: 600;
}

/* ===== ABOUT SECTION ===== */
.about-img {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-img img {
    width: 100%;
    border-radius: 10px;
    transition: var(--transition);
}

.about-img:hover img {
    transform: scale(1.05);
}

.about-content h2 {
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.about-content h2:after {
    content: '';
    position: absolute;
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    bottom: 0;
    left: 0;
}

.about-content p {
    margin-bottom: 20px;
}

.about-content ul {
    margin-bottom: 30px;
}

.about-content ul li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 30px;
}

.about-content ul li:before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-color);
}

/* ===== SERVICES SECTION ===== */
.service-card {
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    background: white;
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-align: left;
    margin-top: 16px;

}

.service-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--primary-color);
    transition: var(--transition);
    z-index: -1;
}

.service-card:hover:before {
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-card:hover h4,
.service-card:hover p,
.service-card:hover .service-icon {
    color: white;
}

.service-card .service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: var(--transition);
}

.service-card h4 {
    margin-bottom: 15px;
    transition: var(--transition);
}

.service-card p {
    text-align: justify;
    transition: var(--transition);
}

/* Services Carousel */
.services-scroll-container {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
    padding: 20px 0;
    margin: 0 -15px;
    /* Compesate for container padding */
    padding-left: 15px;
    /* Add some padding to start */
}

.services-scroll-container::-webkit-scrollbar {
    display: none;
}

.service-item {
    flex: 0 0 auto;
    width: 350px;
    margin-right: 25px;
    padding-bottom: 5px;
    /* Space for shadow */
}

.service-card {
    height: 100%;
    margin-top: 0;
    /* Override previous margin */
}

.scroll-btn {
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.scroll-btn:hover {
    background: #004494;
    transform: translateY(-50%) scale(1.1);
}

@media (max-width: 768px) {
    .service-item {
        width: 300px;
        margin-right: 15px;
    }

    .scroll-btn {
        display: none !important;
        /* Hide button on mobile, swipe is natural */
    }
}

/* Partners Carousel */
.partners-scroll-container {
    display: flex;
    overflow-x: hidden;
    /* Hide scrollbar but allow JS scroll */
    white-space: nowrap;
    padding: 20px 0;
    align-items: center;
}

.partner-item {
    flex: 0 0 auto;
    width: 200px;
    /* Adjustable width */
    margin-right: 15px;
    text-align: center;
    opacity: 0.7;
    transition: var(--transition);
}

.partner-item:hover {
    opacity: 1;
    transform: scale(1.1);
}

.partner-item img {
    max-width: 100%;
    height: auto;
    max-height: 80px;
    /* Limit height */
    transition: var(--transition);
}



/* ===== PRODUCTS SECTION ===== */
.product-card .card-img-top {
    height: 250px;
    object-fit: contain;
    width: 100%;
    padding: 20px;
    background-color: #fff;
}

.product-card .card-title {
    min-height: 3rem;
    /* Approx 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.product-card .card-text {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1rem;
    height: 4.5em;
    /* Enforce fixed height for description area */
}

/* ===== COUNTER SECTION ===== */
.counter-section {
    background: url('../images/counter-bg.jpg') no-repeat center center;
    background-size: cover;
    position: relative;
    z-index: 1;
    padding: 100px 0;
}

.counter-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 86, 179, 0.85);
    z-index: -1;
}

.counter-box {
    text-align: center;
    color: white;
}

.counter-box .counter-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.counter-box .counter-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.counter-box .counter-text {
    font-size: 1.25rem;
    font-weight: 500;
}

/* ===== TESTIMONIAL SECTION ===== */
.testimonial-card {
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    background: white;
    position: relative;
    margin-top: 40px;
}

.testimonial-card .testimonial-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    position: absolute;
    top: -40px;
    left: 30px;
    border: 5px solid white;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.testimonial-card .testimonial-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-card .testimonial-content {
    margin-top: 30px;
}

.testimonial-card .testimonial-content p {
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-card .testimonial-content .testimonial-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.testimonial-card .testimonial-content .testimonial-position {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.testimonial-card .testimonial-rating {
    color: #ffc107;
    margin-bottom: 15px;
}

/* ===== BLOG SECTION ===== */
.blog-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    background: white;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.blog-card .blog-img {
    position: relative;
    overflow: hidden;
}

.blog-card .blog-img img {
    width: 100%;
    height: 250px;
    object-fit: contain;
    transition: var(--transition);
}

.blog-card:hover .blog-img img {
    transform: scale(1.1);
}

.blog-card .blog-category {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 500;
}

.blog-card .blog-content {
    padding: 25px;
}

.blog-card .blog-content .blog-date {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.blog-card .blog-content h4 {
    margin-bottom: 15px;
    font-weight: 600;
}

.blog-card .blog-content p {
    margin-bottom: 20px;
}

.blog-card .blog-content .blog-link {
    font-weight: 500;
    color: var(--primary-color);
}

.blog-card .blog-content .blog-link i {
    margin-left: 5px;
    transition: var(--transition);
}

.blog-card .blog-content .blog-link:hover i {
    margin-left: 10px;
}

/* ===== NEWSLETTER SECTION ===== */
.newsletter-section {
    position: relative;
    z-index: 1;
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--dark-color);
    color: white;
}

.footer h5 {
    position: relative;
    padding-bottom: 15px;
}

.footer h5:after {
    content: '';
    position: absolute;
    display: block;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    bottom: 0;
    left: 0;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer ul li a {
    transition: var(--transition);
}

.footer ul li a:hover {
    color: var(--primary-color) !important;
    padding-left: 5px;
}

.footer .service-card p {
    transition: var(--transition);
    text-align: justify;
}

.footer .social-icons a {
    transition: var(--transition);
}

.footer .social-icons a:hover {
    color: var(--primary-color) !important;
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.back-to-top:hover {
    background: #004494;
    color: white;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 1199.98px) {
    .hero-carousel .carousel-item {
        height: 500px;
    }

    .hero-carousel .carousel-caption h2 {
        font-size: 2.5rem;
    }

    /* Disable parallax on tablet/mobile for performance */
    .about-section {
        background-attachment: scroll !important;
        padding: 80px 0;
    }
}

@media (max-width: 991.98px) {
    .section-padding {
        padding: 80px 0;
    }

    .hero-carousel .carousel-item {
        height: 450px;
    }

    .hero-carousel .carousel-caption h2 {
        font-size: 2rem;
    }

    .hero-carousel .carousel-caption p {
        font-size: 1.1rem;
    }

    .navbar-collapse {
        background: white;
        padding: 20px;
        border-radius: 10px;
        box-shadow: var(--box-shadow);
        margin-top: 15px;
    }

    .navbar-light .navbar-nav .nav-link {
        padding: 10px 0;
    }

    .navbar-light .navbar-nav .nav-link:after {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .section-padding {
        padding: 60px 0;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .hero-carousel .carousel-item {
        height: 400px;
    }

    .hero-carousel .carousel-caption {
        padding: 20px;
    }

    .hero-carousel .carousel-caption h2 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    .hero-carousel .carousel-caption p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .counter-box .counter-number {
        font-size: 2.5rem;
    }

    .counter-box .counter-text {
        font-size: 1.1rem;
    }
}

@media (max-width: 575.98px) {
    .section-padding {
        padding: 50px 0;
    }

    .section-title h2 {
        font-size: 1.75rem;
    }

    .hero-carousel .carousel-item {
        height: 350px;
    }

    .hero-carousel .carousel-caption h2 {
        font-size: 1.5rem;
    }

    .hero-carousel .carousel-caption .btn {
        padding: 0.5rem 1.5rem;
        font-size: 1rem;
    }
}



/* Newsletter Form Adjustments */
@media (min-width: 768px) {
    #newsletter-form>div:nth-child(1) {
        width: 35%;
        flex: 0 0 35%;
    }

    #newsletter-form>div:nth-child(2) {
        width: 65%;
        flex: 0 0 65%;
    }
}

/* Home About Content Justification */
.about-section .about-content p {
    text-align: justify !important;
    text-align-last: left !important;
}

/* Enhanced Contact Us Navbar Button */
.btn-contact-cta {
    background: linear-gradient(135deg, #0d6efd, #6610f2) !important;
    /* Blue to Purple gradient */
    border: none !important;
    color: #fff !important;
    font-weight: 700 !important;
    /* Bold text */
    padding: 12px 30px !important;
    /* Increased padding */
    border-radius: 4px !important;
    /* Rounded shape */
    transition: all 0.3s ease !important;
    /* Smooth transition */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-contact-cta:hover {
    transform: scale(1.05);
    /* Slight scale up */
    box-shadow: 0 0 20px rgba(102, 16, 242, 0.4) !important;
    /* Soft outer glow */
    color: #fff !important;
    cursor: pointer;
}

.btn-contact-cta:active {
    transform: scale(0.98) !important;
    /* Pressed effect */
    box-shadow: none !important;
}

.btn-contact-cta:focus {
    outline: 2px solid #fff;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.5) !important;
}

/* Interactive Feature Cards */
.interactive-card {
    position: relative;
    height: 320px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* About Section Animations */
.about-section {
    position: relative;
    overflow: hidden;
}

/* Floating Shapes */
.anim-shape {
    position: absolute;
    opacity: 0.6;
    /* Increased visibility */
    z-index: 0;
    pointer-events: none;
}

.shape-1 {
    top: 10%;
    left: 5%;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    animation: float-blob 10s infinite ease-in-out;
}

.shape-2 {
    bottom: 10%;
    right: 5%;
    width: 150px;
    height: 150px;
    background: #FF9F43;
    /* Explicit color for visibility */
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    opacity: 0.4;
    animation: float-blob 15s infinite ease-in-out reverse;
}

.shape-3 {
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    border: 20px solid rgba(13, 110, 253, 0.1);
    border-radius: 50%;
    animation: morph-blob 20s infinite linear;
}

@keyframes float-blob {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(20px, -20px) rotate(10deg);
    }
}

@keyframes morph-blob {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
        transform: rotate(0deg);
    }

    50% {
        border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
        transform: rotate(180deg);
    }

    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
        transform: rotate(360deg);
    }
}

/* 3D Tilt Effect */
.item-tilt {
    perspective: 1000px;
    transform-style: preserve-3d;
}

.tilt-element {
    transition: transform 0.1s ease-out;
    transform-style: preserve-3d;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15) !important;
}

.img-backdrop {
    position: absolute;
    top: 20px;
    left: 20px;
    right: -20px;
    bottom: -20px;
    background: var(--primary-color);
    opacity: 0.1;
    border-radius: 12px;
    z-index: -1;
    transition: transform 0.3s ease;
}

.item-tilt:hover .img-backdrop {
    transform: translate(10px, 10px);
}

.item-tilt:hover .tilt-element {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2) !important;
}

.interactive-card .card-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.interactive-card:hover .card-bg-img {
    transform: scale(1.1);
}

.interactive-card .card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.85) 100%);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.interactive-card:hover .card-overlay {
    opacity: 1;
}

.interactive-card .card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    color: #fff;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.interactive-card:hover .card-content {
    transform: translateY(0);
}

.interactive-card .card-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.9);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.4s ease 0.1s;
}

.interactive-card:hover .card-icon {
    opacity: 1;
    transform: translateY(0);
}

.interactive-card h4 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.interactive-card p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    margin-bottom: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.5s ease;
}

.interactive-card:hover p {
    max-height: 100px;
    opacity: 1;
    margin-top: 10px;
}

/* Expanded State for Read More */
.interactive-card .card-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

.interactive-card.expanded {
    height: auto;
    min-height: 320px;
}

.interactive-card.expanded .card-content {
    position: relative;
    transform: translateY(0);
    z-index: 2;
    padding-bottom: 60px;
    /* Space for button if needed */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 100%);
    /* Readability */
}

.interactive-card.expanded p {
    max-height: 2000px;
    opacity: 1;
    margin-top: 10px;
    white-space: normal;
}

.read-more-btn {
    display: inline-block;
    color: #ffd700;
    /* Gold color for visibility */
    margin-top: 10px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    color: #fff;
    text-decoration: underline;
}

/* Enhanced About Animations */
.shimmer-text {
    background: linear-gradient(to right, var(--primary-color) 0%, #33ccff 50%, var(--primary-color) 100%);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    to {
        background-position: 200% center;
    }
}

.about-feature-list li {
    opacity: 0;
    transform: translateX(20px);
    animation: slideInRight 0.5s ease forwards;
    animation-delay: var(--d);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.about-feature-list li:hover {
    transform: translateX(10px) !important;
    /* Override animation transform */
}

.about-feature-list li:hover .footer-arrow {
    transform: translateX(5px);
    color: #33ccff !important;
}

.footer-arrow {
    transition: transform 0.3s ease, color 0.3s ease;
}

/* CTA Section - Blue Background */
.cta-section {
    background: #0056b3;
}

.cta-section .btn-light {
    background: #fff;
    color: #0056b3;
    border: none;
}

.cta-section .btn-light:hover {
    background: #f8f9fa;
    color: #0056b3;
}