/* Base Styles */
:root {
    --primary-color: #00a896;
    --secondary-color: #02c39a;
    --dark-color: #05668d;
    --light-color: #f0f3f5;
    --text-color: #333;
    --white: #ffffff;
    --transition: all 0.2s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 95%;
    max-width: 1140px; /* Standardized max-width for site content */
    margin: 0 auto;
    padding: 0 15px;
}

/* Button Styles */
.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 500;
    transition: var(--transition);
    border: 2px solid var(--primary-color);
    cursor: pointer;
}

.btn:hover {
    background-color: transparent;
    color: var(--primary-color);
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

header.scrolled {
    padding: 10px 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo a {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

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

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding: 120px 120px; /* Align with carousel section padding */
    position: relative;
    overflow: hidden;
    background-color: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero .container {
    max-width: none; /* Remove max-width constraint */
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-content {
    width: 50%;
    text-align: center;
    max-width: 400px; /* Reduce max-width to move content inward */
}

.hero-content:only-child {
    width: 100%;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--dark-color);
    white-space: nowrap;
}

.title-images {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    gap: 0;
}

.title-image {
    height: 72px;
    width: auto;
    display: block;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
    color: var(--text-color);
}

.hero p:first-of-type {
    white-space: nowrap;
    margin-bottom: 10px;
}

.hero p:nth-of-type(2) {
    margin-bottom: 30px;
}

.hero-image {
    width: 50%;
    position: relative;
    display: flex;
    justify-content: center;
    max-width: 400px; /* Reduce max-width to move content inward */
}

.hero-image img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    height: auto;
}

/* Products Section */
.intro {
    padding: 100px 0;
    background-color: var(--white);
}

.intro-item {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 80px;
    padding: 0 80px;
}

.intro-image {
    width: 50%;
}

.intro-image img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.intro-content {
    width: 50%;
}

.intro-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.intro-content p {
    margin-bottom: 30px;
}

/* Carousel Section */
.carousel-section {
    padding: 80px 80px;
    background-color: var(--light-bg);
}

.carousel-section .carousel {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.carousel-section .carousel-indicators {
    bottom: -40px;
}

.carousel-section .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--primary-color);
    opacity: 0.5;
}

.carousel-section .carousel-indicators button.active {
    opacity: 1;
}

.carousel-section .carousel-control-prev,
.carousel-section .carousel-control-next {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
}

.carousel-section .carousel-control-prev {
    left: 10px;
}

.carousel-section .carousel-control-next {
    right: 10px;
}

.carousel-section .carousel-control-prev:hover,
.carousel-section .carousel-control-next:hover {
    opacity: 1;
}

.carousel-section .carousel-item {
    padding: 50px 0;
    height: 600px; /* Fixed height for carousel items */
    /* display: flex; Ensure only active item is flex */
    /* align-items: center; Ensure only active item is flex */
}

.carousel-section .carousel-item.active {
    display: flex;
    align-items: center; /* Vertically center content for active item */
}

/* About Section */
.about-container {
    display: flex;
    align-items: center;
    gap: 50px;
    padding: 0 80px;
}

.about-content {
    width: 50%;
}

.about-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.about-content p {
    margin-bottom: 20px;
}

.about-image {
    width: 50%;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Liquid Packaging Section */
.liquid-packaging {
    padding: 100px 0;
    background-color: var(--white);
}

.liquid-packaging .container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.liquid-image {
    width: 50%;
}

.liquid-image img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.liquid-content {
    width: 50%;
}

.liquid-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.liquid-content p {
    margin-bottom: 30px;
}

/* Futures Lab Section */
.futures-lab {
    padding: 100px 0;
    background-color: var(--light-color);
}

.futures-lab .container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.lab-content {
    width: 50%;
}

.lab-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.lab-content p {
    margin-bottom: 30px;
}

.lab-image {
    width: 50%;
}

.lab-image img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Applications Section */
.applications {
    padding: 100px 0;
    background-color: var(--white);
}

.section-title {
    font-size: 36px;
    text-align: center;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.section-subtitle {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    font-size: 18px;
}

.application-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.application-item {
    background-color: var(--light-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.application-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.application-image {
    height: 200px;
    overflow: hidden;
}

.application-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: var(--transition);
}

.application-item:hover .application-image img {
    transform: scale(1.1);
    content: attr(src);
    content: attr(src);
}

/* Change image on hover */
.application-item:hover .application-image img[src*="film.png"] {
    content: url('../images/film2.png');
}

.application-item:hover .application-image img[src*="particale.png"] {
    content: url('../images/particale2.png');
}

.application-item:hover .application-image img[src*="fiber.png"] {
    content: url('../images/fiber2.png');
}

.application-status {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    margin: 15px;
}

.application-item h3 {
    padding: 0 15px;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.application-item p {
    padding: 0 15px 20px;
    color: var(--text-color);
}

/* Testimonials Section */
.testimonials {
    padding: 100px 0;
    background-color: var(--light-color);
}

.testimonial-slider {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 20px 0;
    scrollbar-width: none; /* Firefox */
}

.testimonial-slider::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}

.testimonial-item {
    min-width: 350px;
    background-color: var(--white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.testimonial-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto;
}

.testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-content {
    text-align: center;
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 15px;
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary-color);
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background-color: var(--white);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--light-color);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 16px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

/* Align send message button to the right */
.contact-form .btn {
    display: block;
    margin-left: auto;
    margin-right: 0;
}

.form-success,
.form-error {
    display: none;
    text-align: center;
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
}

.form-success {
    background-color: #d4edda;
    color: #155724;
}

.form-error {
    background-color: #f8d7da;
    color: #721c24;
}

/* Empty Scroll Section for Floating Bubble */
.empty-scroll-section {
    height: 50vh; /* Adjust height as needed, 50vh is a good starting point */
    /* background-color: #f0f0f0; */ /* Optional: for debugging visibility */
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 80px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo a {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    display: inline-block;
}

.footer-logo p {
    margin-top: 15px;
    opacity: 0.8;
}

.footer-links h3,
.footer-social h3 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
}

.footer-links h3::after,
.footer-social h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    opacity: 1;
    color: var(--primary-color);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
    font-size: 14px;
}

/* Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-content,
    .hero-image,
    .intro-image,
    .intro-content,
    .about-content,
    .about-image,
    .liquid-image,
    .liquid-content,
    .lab-content,
    .lab-image {
        width: 100%;
    }

    .hero {
        flex-direction: column;
        padding: 140px 0 80px;
        gap: 40px;
    }
    
    .about-container {
        flex-direction: column-reverse;
        gap: 30px;
    }

    .hero {
        padding: 120px 100px; /* Align with carousel tablet padding */
    }
    
    .hero .container {
        max-width: none; /* Remove max-width constraint for tablet */
    }
    
    .hero-content {
        margin-bottom: 0;
        text-align: center;
        width: 100%;
        max-width: none;
    }
    
    .hero-image {
        width: 100%;
        max-width: none;
    }

    .intro-item,
    .about .container,
    .liquid-packaging .container,
    .futures-lab .container {
        flex-direction: column;
        gap: 40px;
    }

    .intro-item:nth-child(even) {
        flex-direction: column;
    }
    
    /* Adjust carousel controls for tablet screens */
    .carousel-section {
        padding: 80px 60px;
    }
    
    .intro-item,
    .about-container {
        padding: 0 60px;
    }
    
    .carousel-section .carousel-control-prev {
        left: 10px;
    }
    
    .carousel-section .carousel-control-next {
        right: 10px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
        z-index: 999;
    }

    .nav-links.active {
        left: 0;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    .hero {
        padding: 120px 80px; /* Align with carousel mobile padding */
    }
    
    .hero .container {
        max-width: none; /* Remove max-width constraint for mobile */
        flex-direction: column;
        gap: 30px;
    }
    
    .hero h1 {
        font-size: 36px;
    }

    .section-title,
    .intro-content h2,
    .about-content h2,
    .liquid-content h2,
    .lab-content h2 {
        font-size: 30px;
    }

    .testimonial-item {
        min-width: 280px;
    }
    
    /* Adjust carousel controls for mobile screens */
    .carousel-section {
        padding: 80px 40px;
    }
    
    .intro-item,
    .about-container {
        padding: 0 40px;
    }
    
    .carousel-section .carousel-control-prev {
        left: 5px;
    }
    
    .carousel-section .carousel-control-next {
        right: 5px;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 120px 60px; /* Align with carousel small mobile padding */
    }
    
    .hero .container {
        max-width: none; /* Remove max-width constraint for small mobile */
    }
    
    .hero h1 {
        font-size: 28px;
    }

    .hero p,
    .section-subtitle {
        font-size: 16px;
    }

    .section-title,
    .intro-content h2,
    .about-content h2,
    .liquid-content h2,
    .lab-content h2 {
        font-size: 24px;
    }

    .application-grid {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 20px;
    }
    
    /* Adjust carousel controls for small mobile screens */
    .carousel-section {
        padding: 80px 30px;
    }
    
    .intro-item,
    .about-container {
        padding: 0 30px;
    }
    
    .carousel-section .carousel-control-prev {
        left: 5px;
    }
    
    .carousel-section .carousel-control-next {
        right: 5px;
    }
}

/* Floating Bubble Styles */
.floating-bubble {
    position: fixed;
    top: 20px;
    left: 50%; /* Positioned in top middle */
    transform: translateX(-50%); /* Center horizontally */
    z-index: 1000;
    transition: var(--transition);
    opacity: 1;
    visibility: visible !important; /* Ensures visibility */
    display: block !important; /* Ensures display */
    animation: fadeIn 0.5s ease-in-out;
}

.floating-bubble .bubble-content {
    background-color: rgba(75, 165, 150, 0.5); /* Changed to #4ba596 with 50% transparency */
    backdrop-filter: blur(10px);
    border-radius: 60% 40% 70% 30% / 60% 30% 70% 40%; /* Organic shape */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), inset 0 8px 20px rgba(255, 255, 255, 0.3), 0 5px 15px rgba(0, 0, 0, 0.2); /* Enhanced 3D effect */
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55), border-radius 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55), width 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55), height 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    animation: morphBubble 9.6s infinite alternate ease-in-out;
    margin: 0 auto;
}

.floating-bubble .bubble-content::before {
    content: 'K';
    font-size: 36px;
    font-weight: 700;
    color: var(--white);
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3), 0 2px 5px rgba(0, 0, 0, 0.2); /* Enhanced 3D text effect */
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    opacity: 1;
}

.floating-bubble.active .bubble-content::before {
    content: '';
    opacity: 0;
    display: none;
}

/* Create a new element for KICCA text with animation */
.floating-bubble.active .bubble-content::after {
    content: 'KICCA';
    font-size: 42px;
    font-weight: 700;
    color: var(--white);
    /* Removed text shadow */
    position: absolute;
    left: 50px;
    top: 30px;
    transform: translateX(0);
    opacity: 0;
    animation: slideInKicca 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55) forwards;
animation-delay: 0.4s; /* Start after bubble expansion */
}

/* Shape-shifting animation */
@keyframes morphBubble {
    0% { border-radius: 58% 42% 66% 34% / 58% 34% 66% 42%; }
    25% { border-radius: 42% 58% 34% 66% / 50% 58% 42% 50%; }
    50% { border-radius: 34% 58% 66% 42% / 50% 34% 58% 42%; }
    75% { border-radius: 58% 42% 34% 66% / 58% 42% 50% 34%; }
    100% { border-radius: 50% 58% 42% 50% / 42% 50% 58% 50%; }
}

/* KICCA text slide-in animation */
@keyframes slideInKicca {
    0% {
        opacity: 0;
        left: 50%;
        top: 15%;
        transform: translateX(-50%);
    }
    60% {
        opacity: 0;
        left: 50px;
        top: 30px;
        transform: translateX(0);
    }
    100% {
        opacity: 1;
        left: 50px;
        top: 30px;
        transform: translateX(0);
    }
}

/* Menu fade-in animation */
@keyframes fadeInMenu {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.floating-bubble .bubble-header {
    display: none;
}

.floating-bubble .bubble-dropdown {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease;
    opacity: 0;
    width: 100%;
    height: 100%;
}

.floating-bubble.active .bubble-dropdown {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px;
    height: 100%;
    opacity: 1;
}

.floating-bubble.active .bubble-dropdown {
    max-height: 100%;
    opacity: 0;
    animation: fadeInMenu 0.3s ease-in-out forwards;
animation-delay: 0.6s; /* Start after KICCA text animation */
}

.floating-bubble.active {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    transform: none;
    animation: fadeIn 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.floating-bubble.active .bubble-content {
    width: 100%;
    height: 100vh;
    border-radius: 0;
    box-shadow: none;
    animation: none;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    justify-content: flex-start;
    align-items: center;
    background-color: rgba(75, 165, 150, 0.5); /* Same color as collapsed state with 50% transparency */
    backdrop-filter: blur(15px);
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%); /* Ensures expansion from the middle */
    transform-origin: top center; /* Sets the origin point for the transform */
    z-index: 9999;
}

.floating-bubble.active .bubble-content::before {
    display: none;
}

.floating-bubble.active .bubble-header {
    display: none;
}

.floating-bubble.active .bubble-dropdown {
    max-height: none;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.floating-bubble .bubble-dropdown ul {
    padding: 15px 20px;
    list-style: none;
    margin: 0 auto;
    max-height: none; /* Remove scroll */
    overflow-y: visible;
    width: 100%;
    max-width: 600px;
}

.floating-bubble.active .bubble-dropdown ul {
    text-align: center;
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.floating-bubble .bubble-dropdown ul li {
    margin-bottom: 10px;
}

.floating-bubble.active .bubble-dropdown ul li {
    margin-bottom: 12px; /* Reduced space between menu items */
}

.floating-bubble .bubble-dropdown ul li:last-child {
    margin-bottom: 0;
}

.floating-bubble .bubble-dropdown ul li a {
    color: var(--white);
    font-weight: 500;
    transition: var(--transition);
    display: block;
    padding: 5px 0;
}

.floating-bubble.active .bubble-dropdown ul li a {
    font-size: 28px; /* Larger text */
    padding: 5px 0; /* Less padding to reduce space */
}

.floating-bubble .bubble-dropdown ul li a:hover {
    color: var(--light-color);
    transform: scale(1.05);
}

/* Bubble Footer Styles */
.bubble-footer {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 15px 20px;
    background-color: rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-section {
    flex: 1;
    min-width: 100px;
    margin: 5px;
    color: var(--white);
}

.footer-section h4 {
    font-size: 14px;
    margin-bottom: 8px;
    position: relative;
    padding-bottom: 5px;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 1px;
    background-color: var(--white);
}

.footer-section p {
    margin-bottom: 4px;
    font-size: 12px;
    opacity: 0.9;
    line-height: 1.3;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.floating-bubble.active .bubble-dropdown ul li a:hover {
    transform: scale(1.1);
}

/* Footer in expanded bubble */
.floating-bubble.active .bubble-footer {
    padding: 12px;
    text-align: left;
    color: var(--white);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 15px;
    width: 100%; /* Make footer wider */
    justify-content: space-around;
    position: relative;
    padding-bottom: 32px; /* Make space for copyright */
    max-height: calc(25vh - 20px); /* Increased footer height */
    overflow-y: visible; /* Ensure content is visible */
}

/* Footer sections styling */
.floating-bubble .footer-section {
    min-width: 200px;
    margin-bottom: 15px;
    flex: 1;
    max-width: 300px;
}

.floating-bubble .footer-section h4 {
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 600;
}

.floating-bubble .footer-section p {
    margin: 4px 0;
    font-size: 14px;
    line-height: 1.5;
}

/* Copyright section */
.floating-bubble .copyright {
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 14px;
    color: var(--white);
    opacity: 0.8;
    padding: 5px 0;
}

/* Responsive footer */
@media (max-width: 768px) {
    .floating-bubble.active .bubble-footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px; 
        padding: 15px; /* Increased padding for more space */
        max-height: calc(40vh - 20px); /* Significantly increased footer height */
        overflow-y: auto; /* Allow scroll if content overflows */
    }
    
    .floating-bubble .footer-section {
        width: 100%;
        max-width: 100%;
        margin-bottom: 8px; /* Slightly increased bottom margin for spacing */
        text-align: center; 
    }


    
    .floating-bubble .bubble-dropdown ul {
        max-height: none; 
        padding: 5px 10px; /* Reduced padding to move menu items up */
    }
    
    .floating-bubble.active .bubble-dropdown ul li a {
        font-size: 18px; /* Further reduced font size for menu items */
        padding: 2px 0; /* Reduced padding for menu items */
    }

    .floating-bubble.active .bubble-dropdown ul li {
        margin-bottom: 5px; /* Reduced space between menu items */
    }
    
    /* Responsive text size based on viewport height */
    @media (max-height: 600px) {
        .floating-bubble.active .bubble-dropdown ul li a {
            font-size: 16px;
        }
        .floating-bubble.active .bubble-dropdown ul li {
            margin-bottom: 4px;
        }
    }
    
    @media (max-height: 500px) {
        .floating-bubble.active .bubble-dropdown ul li a {
            font-size: 14px;
        }
        .floating-bubble.active .bubble-dropdown ul li {
            margin-bottom: 3px;
        }
    }
    
    .floating-bubble .footer-section h4 {
        display: none; /* Remove h4 elements */
    }
    
    .floating-bubble .footer-section h4::after {
        display: none; /* Remove h4 underline */
    }
    
    .floating-bubble .footer-section p {
        font-size: 11px; /* Reduced font size for footer text */
        margin: 2px 0; 
        line-height: 1.2;
    }
    
    .floating-bubble .copyright {
        font-size: 10px; /* Reduced copyright font size */
        bottom: 3px;
    }
    
    .social-links {
        justify-content: center; 
        gap: 8px; 
        margin-bottom: 5px; 
    }

    .social-links a {
        width: 30px; /* Smaller social icons */
        height: 30px;
    }

    .social-links a i {
        font-size: 14px; /* Smaller icons within social links */
    }
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Fullscreen close button - hidden as requested */
.floating-bubble .fullscreen-close {
    display: none;
}

.floating-bubble .fullscreen-close:hover {
    transform: rotate(90deg);
}

.floating-bubble.active .fullscreen-close {
    display: none;
}

/* Expanded bubble at bottom of page */
.floating-bubble.bottom-expanded {
    position: fixed;
    bottom: 20px;
    top: auto;
}