/* Custom CSS */
body {
    font-family: 'Poppins', sans-serif; /* Apply Poppins globally */
}

.background-gradient {
    background: linear-gradient(135deg, #ffffff 0%, #f5f7fa 100%);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease forwards;
}

.animate-fade-in-delay-1 {
    opacity: 0;
    animation: fadeIn 0.8s ease 0.3s forwards;
}

.animate-fade-in-delay-2 {
    opacity: 0;
    animation: fadeIn 0.8s ease 0.6s forwards;
}

.animate-fade-in-delay-3 {
    opacity: 0;
    animation: fadeIn 0.8s ease 0.9s forwards;
}

/* Logo SVG Style */
.envoklear-logo {
    transition: transform 0.3s ease;
}

.envoklear-logo-container:hover .envoklear-logo {
    transform: scale(1.1);
}

.envoklear-logo-text {
    transition: color 0.3s ease;
}

.envoklear-logo-container:hover .envoklear-logo-text {
    color: #00b84d; /* Tailwind color: envoklear-green */
}

/* Nav Link Animation */
.nav-link {
    position: relative;
    transition: color 0.2s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #00b84d; /* Tailwind color: envoklear-green */
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
}

.nav-link:hover {
    color: #00b84d; /* Tailwind color: envoklear-green */
}

.nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Button Hover Effects */
.btn-hover-scale {
    transition: transform 0.3s ease;
}

.btn-hover-scale:hover {
    transform: scale(1.05);
}

/* Mobile Menu Link Hover */
.mobile-nav-link {
    transition: all 0.3s ease;
}

.mobile-nav-link:hover {
    color: #00b84d; /* Tailwind color: envoklear-green */
    transform: translateX(8px);
}

/* Service Card Hover */
.service-card:hover .icon-container {
    background-color: rgba(0, 200, 83, 0.2);
    transform: scale(1.1);
}

.service-card:hover .service-title {
    color: #00b84d; /* Tailwind color: envoklear-green */
}

/* Make header sticky */
.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    transition: all 0.3s ease;
    background-color: transparent; /* Initial background */
}
.sticky-header.scrolled {
    background-color: white; /* Background on scroll */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}



/* Preloader Styles */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff; /* Or your website's primary background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Ensure it's on top of everything */
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out; /* For smooth fade-out */
    opacity: 1;
    visibility: visible;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader dotlottie-player {
    width: 300px; /* Or your desired size */
    height: 300px; /* Or your desired size */
}

/* Hide main content initially if needed, or ensure preloader covers it */
body.loading {
    overflow: hidden; /* Prevent scrolling while preloader is active */
}


/* Typewriter effect for .dropping-texts */
@keyframes typing {
  /* Slot 1: Website (7 chars) ~0-18% */
  0.0000%, 17.5000% { content: ""; }
  0.5000%, 16.8000% { content: "W"; }
  1.2000%, 16.1000% { content: "We"; }
  1.9000%, 15.4000% { content: "Web"; }
  2.6000%, 14.7000% { content: "Webs"; }
  3.3000%, 14.0000% { content: "Websi"; }
  4.0000%, 13.3000% { content: "Websit"; }
  4.7000%, 12.6000% { content: "Website"; } /* Hold "Website" from 4.7% to (4.7+~4.4=9.1%). Deletion starts at 9.1% (visible until 12.6%) */

  /* Slot 2: Logo (4 chars) ~18-30% */
  18.0000%, 29.8000% { content: ""; }
  18.5000%, 29.1000% { content: "L"; }
  19.2000%, 28.4000% { content: "Lo"; }
  19.9000%, 27.7000% { content: "Log"; }
  20.6000%, 27.0000% { content: "Logo"; } /* Hold "Logo" from 20.6% to (20.6+~3.6=24.2%). Deletion starts at 24.2% */

  /* Slot 3: Media Post (10 chars) ~30-52% */
  30.3000%, 51.8000% { content: ""; }
  30.8000%, 51.1000% { content: "M"; }
  31.5000%, 50.4000% { content: "Me"; }
  32.2000%, 49.7000% { content: "Med"; }
  32.9000%, 49.0000% { content: "Medi"; }
  33.6000%, 48.3000% { content: "Media"; }
  34.3000%, 47.6000% { content: "Media "; }
  35.0000%, 46.9000% { content: "Media P"; }
  35.7000%, 46.2000% { content: "Media Po"; }
  36.4000%, 45.5000% { content: "Media Pos"; }
  37.1000%, 44.8000% { content: "Media Post"; } /* Hold "Media Post" from 37.1% to (37.1+~4.2=41.3%). Deletion starts at 41.3% */

  /* Slot 4: Newsletter (10 chars) ~52-74% */
  52.3000%, 73.8000% { content: ""; }
  52.8000%, 73.1000% { content: "N"; }
  53.5000%, 72.4000% { content: "Ne"; }
  54.2000%, 71.7000% { content: "New"; }
  54.9000%, 71.0000% { content: "News"; }
  55.6000%, 70.3000% { content: "Newsl"; }
  56.3000%, 69.6000% { content: "Newsle"; }
  57.0000%, 68.9000% { content: "Newslet"; }
  57.7000%, 68.2000% { content: "Newslett"; }
  58.4000%, 67.5000% { content: "Newslette"; }
  59.1000%, 66.8000% { content: "Newsletter"; } /* Hold "Newsletter" from 59.1% to (59.1+~4.2=63.3%). Deletion starts at 63.3% */

  /* Slot 5: ANYTHING! (9 chars) ~74-100% */
  74.3000%, 100.0000% { content: ""; } /* Extends to 100% for the final blank */
  74.8000%, 98.1000% { content: "A"; }
  75.5000%, 97.4000% { content: "AN"; }
  76.2000%, 96.7000% { content: "ANY"; }
  76.9000%, 96.0000% { content: "ANYT"; }
  77.6000%, 95.3000% { content: "ANYTH"; }
  78.3000%, 94.6000% { content: "ANYTHI"; }
  79.0000%, 93.9000% { content: "ANYTHIN"; }
  79.7000%, 93.2000% { content: "ANYTHING"; }
  80.4000%, 92.5000% { content: "ANYTHING!"; } /* Hold "ANYTHING!" from 80.4% to (80.4+~4.2=84.6%). Deletion starts at 84.6% */
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.dropping-texts {
  --caret: currentcolor; /* Use the current text color for the caret */
  display: inline; /* To flow with "What we provide " text */
}

.dropping-texts::before {
  content: "";
  animation: typing 13.5s infinite;
}

.dropping-texts::after {
  content: "";
  border-right: 1px solid var(--caret);
  animation: blink 0.5s linear infinite;
}

/* Hide the original static divs inside .dropping-texts */
.dropping-texts > div {
  display: none;
}

@media (prefers-reduced-motion) {
  .dropping-texts::after {
    animation: none;
  }
  
  @keyframes sequencePopup { /* Fallback for reduced motion */
    0%, 100% { content: "Website"; }     /* 0-19.9% */
    20% { content: "Logo"; }             /* 20-39.9% */
    40% { content: "Media Post"; }       /* 40-59.9% */
    60% { content: "Newsletter"; }       /* 60-79.9% */
    80% { content: "ANYTHING!"; }        /* 80-99.9% */
  }

  .dropping-texts::before {
    content: "Website"; /* Default text for reduced motion */
    animation: sequencePopup 12s linear infinite;
  }
}
/* --- New styles for Procedure Steps with Scroll & Hover Interaction --- */

/* Add perspective to the container of the steps for 3D hover effect */
section#procedure .max-w-4xl.mx-auto {
    perspective: 1200px; /* Adjust for more/less dramatic 3D effect */
}

/* Individual step card styling for scroll and hover */
/* These divs already have Tailwind classes like: mb-10 p-6 bg-gray-50 rounded-xl shadow-lg hover:shadow-xl transition-shadow duration-300 border-l-4 border-envoklear-green */
section#procedure .max-w-4xl.mx-auto > div {
    opacity: 0;
    transform: translateY(50px) rotateX(-15deg) scale(0.95); /* Initial state: slightly down, tilted back, and smaller */
    /* Tailwind's `transition-shadow duration-300` is for box-shadow on hover. We add transitions for opacity and transform. */
    transition-property: opacity, transform, box-shadow;
    transition-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1); /* Smooth ease-out cubic */
    transition-duration: 0.7s, 0.7s, 0.3s; /* Durations for: opacity, transform (for scroll-in), box-shadow */
    /* transition-delay will be set by .is-visible:nth-child(n) for stagger */
}

section#procedure .max-w-4xl.mx-auto > div.is-visible {
    opacity: 1;
    transform: translateY(0) rotateX(0deg) scale(1); /* Final state after scroll-in */
}

/* Staggered transition delays for the scroll-in effect (applied when .is-visible class is added) */
section#procedure .max-w-4xl.mx-auto > div.is-visible:nth-child(1) { transition-delay: 0.05s; }
section#procedure .max-w-4xl.mx-auto > div.is-visible:nth-child(2) { transition-delay: 0.12s; }
section#procedure .max-w-4xl.mx-auto > div.is-visible:nth-child(3) { transition-delay: 0.19s; }
section#procedure .max-w-4xl.mx-auto > div.is-visible:nth-child(4) { transition-delay: 0.26s; }
section#procedure .max-w-4xl.mx-auto > div.is-visible:nth-child(5) { transition-delay: 0.33s; }
section#procedure .max-w-4xl.mx-auto > div.is-visible:nth-child(6) { transition-delay: 0.40s; }
section#procedure .max-w-4xl.mx-auto > div.is-visible:nth-child(7) { transition-delay: 0.47s; }
section#procedure .max-w-4xl.mx-auto > div.is-visible:nth-child(8) { transition-delay: 0.54s; }

/* Hover effect for the step cards */
/* The `hover:shadow-xl` Tailwind class handles the shadow increase. We enhance the transform. */
section#procedure .max-w-4xl.mx-auto > div:hover {
    transform: translateY(-8px) scale(1.03) rotateY(4deg) rotateX(2deg); /* Lift, scale, and slightly tilt on hover */
    /* Make the hover transform snappier */
    transition-duration: 0.7s, 0.25s, 0.3s; /* opacity (no change), transform (faster for hover), box-shadow */
}

/* Floating WhatsApp Button Styles */
.whatsapp-float {
    position: fixed;
    width: auto;
    height: 50px;
    bottom: 30px;
    right: 30px;
    background-color: #25D366; /* Official WhatsApp Green */
    color: #FFF;
    border-radius: 25px; /* Pill shape */
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.25);
    z-index: 1000; /* Ensure it's on top of other content */
    display: flex;
    align-items: center;
    padding: 0 18px 0 15px; /* top/bottom left right */
    text-decoration: none;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.whatsapp-float:hover {
    transform: scale(1.05);
    box-shadow: 3px 3px 12px rgba(0,0,0,0.3);
}

.whatsapp-float .whatsapp-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}

    /* Basic styling for demonstration - you'd have this in a separate CSS file */
    .blog-post-content {
        font-family: Arial, sans-serif;
        line-height: 1.6;
        margin: 20px auto;
        max-width: 800px;
        padding: 20px;
        color: #333;
    }
    .blog-header h1 {
        color: #2c3e50;
        text-align: center;
        margin-bottom: 0.5em;
    }
    .subtitle {
        text-align: center;
        color: #7f8c8d;
        font-style: italic;
        margin-bottom: 2em;
    }
h2 {
    color: #333; /* Or a slightly darker shade from your palette */
    font-size: 1.75em; /* Adjust as needed */
    font-weight: 500; /* Medium weight for a balanced look */
    margin-top: 1.5em;
    margin-bottom: 0.75em;
}
    
    ul, ol {
        margin-left: 20px;
        padding-left: 20px;
    }
    li {
        margin-bottom: 0.5em;
    }
    blockquote {
        border-left: 4px solid #1abc9c;
        margin: 1.5em 10px;
        padding: 0.5em 10px;
        font-style: italic;
        color: #555;
    }
    blockquote p {
        margin: 0;
    }
    .grid-examples {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
        margin-top: 1em;
    }
    .example-card {
        background-color: #f9f9f9;
        border: 1px solid #eee;
        padding: 15px;
        border-radius: 5px;
    }
    .example-card h3 {
       color: #2980b9;
    }
    .blog-footer {
        text-align: center;
        margin-top: 2em;
        padding-top: 1em;
        border-top: 1px solid #ecf0f1;
    }
    figure {
        margin: 1.5em 0;
        text-align: center;
    }
    figcaption {
        font-size: 0.9em;
        color: #777;
        margin-top: 0.5em;
    }

/* Floating Quote Form Styles */
#floatingQuoteBtn {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

#floatingQuoteForm {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Ensure floating quote modal is always on top */
#quoteFormModal {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    z-index: 2147483647 !important;
}

/* Form field focus states */
#quoteRequestForm input:focus,
#quoteRequestForm textarea:focus {
    box-shadow: 0 0 0 3px rgba(0, 99, 37, 0.1);
}

/* Loading animation for submit button */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Mobile responsiveness */
@media (max-width: 640px) {
    #floatingQuoteBtn {
        bottom: 1rem;
        right: 1rem;
        padding: 0.75rem;
    }
    
    #floatingQuoteBtn svg {
        width: 1.25rem;
        height: 1.25rem;
    }
}

/* Notification badge pulse */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
