/* Styles specifically for the Public Tools page (/public/tools) */
/* Root Variables */
:root {
    --primary-color: #2584C4;
    --secondary-color: #2D4359;
    --accent-color: #00CC52;
    --text-color: #333;
    --bg-color: #f8f9fa;
    --light-color: #f8f9fa;
    --dark-color: #1A1D21;
    --gray-color: #7f8c8d;
    --shadow: 0 5px 15px rgba(0,0,0,0.05);
    --hover-shadow: 0 15px 30px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
    --border-radius: 5px;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

/* Prevent blue highlight on mobile touch */
a, button, input, select, textarea, [role="button"] {
    -webkit-tap-highlight-color: transparent;
    outline: none;
    text-decoration: none;
}

/* Prevent text selection */
body {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Allow text selection only in specific areas if needed */
.selectable-text {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* Make all images non-draggable */
img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    pointer-events: none;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #1A1D21;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

/* Side Panel */
.side-panel {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 43px;
    background: linear-gradient(to bottom, #2584C4, #00CC52);
    z-index: 98;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 1.5rem 0;
}

/* Side panel dropdown toggle */
.side-dropdown-toggle {
    background: none;
    border: none;
    color: white;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: 8px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 10px;
    position: relative;
}

.side-dropdown-toggle i {
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.side-dropdown-toggle .fa-plus {
    position: relative;
}

.side-dropdown-toggle .fa-chevron-down {
    position: relative;
    transition: transform 0.3s ease;
}

.side-dropdown-toggle:hover {
    color: #1A1D21;
}

.side-dropdown-toggle.active .fa-plus {
    transform: rotate(90deg);
}

.side-dropdown-toggle.active .fa-chevron-down {
    transform: rotate(180deg);
}

/* Side panel dropdown content */
.side-dropdown-content {
    visibility: hidden;
    opacity: 0;
    height: 0;
    flex-direction: column;
    align-items: center;
    width: 100%;
    overflow: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, height 0.3s ease;
}

.side-dropdown-content.active {
    visibility: visible;
    opacity: 1;
    height: auto;
    display: flex;
}

/* Initial state for icons */
.side-dropdown-content .side-icon {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Animation for each icon when dropdown is active */
.side-dropdown-content.active .side-icon:nth-child(1) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
}

.side-dropdown-content.active .side-icon:nth-child(2) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.side-dropdown-content.active .side-icon:nth-child(3) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.side-dropdown-content.active .side-icon:nth-child(4) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

.side-dropdown-content.active .side-icon:nth-child(5) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
}

.side-panel .logo-link {
    position: relative;
    width: 35px;
    height: 35px;
    display: block;
}

/* Circle background */
.side-panel .logo-link::before {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    top: 15px;
    left: 5px;
    background: #2584C4;
    border-radius: 50%;
    z-index: 0;
    box-shadow: 0 0 10px 3px rgba(37, 132, 196, 0.7);
    animation: pulse-hub 3s infinite ease-in-out;
}

/* Network node spokes */
.side-panel .logo-link::after {
    display: none;
}

.side-panel .logo-small {
    width: 35px;
    height: 35px;
    padding: 0;
    background-color: transparent;
    transition: transform 0.3s ease, filter 0.3s ease;
    margin-bottom: 2rem;
    margin-top: 0.5rem !important;
    position: relative;
    z-index: 2;
    filter:  
           drop-shadow(0 0 2px rgba(0, 0, 0, 0.8));
} 

@keyframes pulse-hub {
    0% {
        box-shadow: 0 0 10px 3px rgba(37, 132, 196, 0.7);
    }
    50% {
        box-shadow: 0 0 15px 5px rgba(37, 132, 196, 0.9);
    }
    100% {
        box-shadow: 0 0 10px 3px rgba(37, 132, 196, 0.7);
    }
}

.side-panel a:hover .logo-small {
    transform: scale(1.1);
 }

.side-panel a:hover .logo-link::before {
    box-shadow: 0 0 15px 5px rgba(37, 132, 196, 0.9);
    animation: none;
}

.side-icons, .side-social {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: 1.5rem;
}

.side-icons {
    margin-bottom: auto;
}

.side-social {
    margin-top: auto;
}

.side-icon {
    width: 100%;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    position: relative;
    margin-bottom: 0.5rem;
}

.side-icon:hover {
    color: #1A1D21;
}

.side-icon:not(.logo-icon):hover::after {
    content: '';
    position: absolute;
    left: 0;
    width: 3px;
    height: 100%;
    background-color: white;
}

.side-icon:not(.logo-icon)::before {
    content: attr(title);
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    background-color: #1A1D21;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 99;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.side-icon:hover::before {
    opacity: 1;
    visibility: visible;
    left: calc(100% + 10px);
}

.side-text {
    display: none;
}

/* Main container with side panel */
.main-container {
    padding-left: 43px;
    width: 100%;
    min-height: 100vh;
    background-color: #1A1D21;
}

/* Main Content */
main {
    padding: 90px 0 0 0;
    flex: 1;
}

/* Hero Section Styles */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: left;
    padding: 0;
    background: linear-gradient(to right, #1A1D21 40%, rgba(26, 29, 33, 0.9) 75%);
    color: white;
    position: relative;
    overflow: hidden;
    transition: background 1.5s ease;
}

.hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 65%;
    height: 100%;
    background: linear-gradient(to right, rgba(26, 29, 33, 0.95) 10%, rgba(26, 29, 33, 0.6) 40%), url('../images/hero-pattern.svg');
    opacity: 0.2;
    pointer-events: none;
    animation: bgPan 30s linear infinite;
}

.particle-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 65%;
    height: 100%;
    background: linear-gradient(to right, #1A1D21 15%, transparent 35%);
    z-index: 1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background-color: #00CC52;
    border-radius: 50%;
    opacity: 0.6;
}

.particle:nth-child(odd) {
    background-color: #2584C4;
}

@keyframes floating {
    0% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-15px) translateX(10px);
    }
    100% {
        transform: translateY(0) translateX(0);
    }
}

/* Generate 20 particles with different positions and animations */
.particle:nth-child(1) { top: 10%; left: 20%; animation: floating 7s infinite ease-in-out; }
.particle:nth-child(2) { top: 30%; left: 80%; animation: floating 5s infinite ease-in-out; }
.particle:nth-child(3) { top: 50%; left: 30%; animation: floating 8s infinite ease-in-out; }
.particle:nth-child(4) { top: 70%; left: 60%; animation: floating 6s infinite ease-in-out; }
.particle:nth-child(5) { top: 20%; left: 40%; animation: floating 9s infinite ease-in-out; }
.particle:nth-child(6) { top: 80%; left: 10%; animation: floating 7s infinite ease-in-out; }
.particle:nth-child(7) { top: 40%; left: 70%; animation: floating 8s infinite ease-in-out; }
.particle:nth-child(8) { top: 60%; left: 20%; animation: floating 6s infinite ease-in-out; }
.particle:nth-child(9) { top: 10%; left: 60%; animation: floating 9s infinite ease-in-out; }
.particle:nth-child(10) { top: 30%; left: 30%; animation: floating 7s infinite ease-in-out; }
.particle:nth-child(11) { top: 50%; left: 80%; animation: floating 6s infinite ease-in-out; }
.particle:nth-child(12) { top: 70%; left: 40%; animation: floating 8s infinite ease-in-out; }
.particle:nth-child(13) { top: 90%; left: 70%; animation: floating 9s infinite ease-in-out; }
.particle:nth-child(14) { top: 20%; left: 20%; animation: floating 7s infinite ease-in-out; }
.particle:nth-child(15) { top: 40%; left: 50%; animation: floating 8s infinite ease-in-out; }
.particle:nth-child(16) { top: 60%; left: 80%; animation: floating 6s infinite ease-in-out; }
.particle:nth-child(17) { top: 80%; left: 30%; animation: floating 9s infinite ease-in-out; }
.particle:nth-child(18) { top: 10%; left: 90%; animation: floating 7s infinite ease-in-out; }
.particle:nth-child(19) { top: 50%; left: 10%; animation: floating 8s infinite ease-in-out; }
.particle:nth-child(20) { top: 90%; left: 50%; animation: floating 6s infinite ease-in-out; }

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
    max-width: 1400px;
    width: 100%;
    padding: 0 4rem 0 2rem;
}

.hero-content {
    width: 45%;
    padding-right: 2rem;
    max-width: 600px;
}

.hero-image {
    width: 55%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    perspective: 1000px;
    transform-style: preserve-3d;
}

.hero-image-wrapper::after {
    content: '';
    position: absolute;
    bottom: -20px;
    width: 60%;
    height: 20px;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    z-index: 0;
    transform: rotateX(60deg) translateZ(-50px);
    animation: shadowPulse 8s ease-in-out infinite;
    filter: blur(5px);
}

@keyframes shadowPulse {
    0% {
        opacity: 0.5;
        transform: rotateX(60deg) translateZ(-50px) scale(1);
    }
    50% {
        opacity: 0.7;
        transform: rotateX(60deg) translateZ(-50px) scale(1.2);
    }
    100% {
        opacity: 0.5;
        transform: rotateX(60deg) translateZ(-50px) scale(1);
    }
}

.hero-image-item {
    max-width: 400px;
    height: auto;
    position: absolute;
    opacity: 0;
    transform: scale(0.9) translateY(20px) rotateX(10deg);
    transition: opacity 1.5s cubic-bezier(0.215, 0.61, 0.355, 1), 
                transform 1.5s cubic-bezier(0.215, 0.61, 0.355, 1),
                filter 1.5s cubic-bezier(0.215, 0.61, 0.355, 1);
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.2));
    z-index: 1;
    transform-origin: center center;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    will-change: transform, opacity, filter;
}

.hero-image-item.active {
    opacity: 1;
    transform: scale(1) translateY(0) rotateX(0);
    animation: floatImage 8s ease-in-out infinite;
}

.engineer-image, .robot-image {
    max-height: 80vh;
    object-fit: contain;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.2));
}

.hero-tag {
    color: #00CC52;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.8rem;
    display: block;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-logo {
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 1;
}

.hero-logo img {
    max-width: 200px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
    transition: transform 0.3s ease;
}

.animated-heading {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.animated-heading .static-text {
    display: block;
    margin-bottom: 0.2rem;
}

.typewriter {
    color: #00CC52;
    font-weight: 700;
}

.cursor {
    color: #00CC52;
    font-weight: 700;
    animation: blink 0.75s step-end infinite;
}

.hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 560px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1.2rem;
    margin-top: 2.5rem;
}

.hero-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.8rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    gap: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.hero-btn i {
    font-size: 1rem;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hero-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: all 0.6s ease;
    z-index: -1;
}

.primary-btn {
    background: linear-gradient(135deg, #2584C4, #00CC52);
    color: white;
    border: none;
}

.secondary-btn {
    background-color: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
}

.hero-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.hero-btn:hover::before {
    transform: translateX(100%);
}

.hero-btn:hover i {
    transform: translateX(3px) scale(1.2);
}

.primary-btn:hover {
    background: linear-gradient(135deg, #00CC52, #2584C4);
    color: white;
}

.secondary-btn:hover {
    border-color: white;
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background-color: #00CC52;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    animation: bounce 2s infinite;
    z-index: 2;
    color: white;
}

.scroll-indicator i {
    font-size: 1.2rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-20px) translateX(-50%);
    }
    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

/* Features Section Styles */
.features {
    background-color: #1A1D21;
    padding: 6rem 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.features-bg-decoration {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle at 80% 20%, rgba(0, 204, 82, 0.1) 0%, transparent 60%);
    z-index: 0;
    pointer-events: none;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.section-tag {
    display: inline-block;
    background: linear-gradient(135deg, #2584C4, #00CC52);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.section-title {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #2584C4, #00CC52);
    margin: 0 auto;
    border-radius: 2px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    position: relative;
    z-index: 1;
}

.feature-card {
    background: rgba(45, 67, 89, 0.6);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(37, 132, 196, 0.1), rgba(0, 204, 82, 0.1));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
}

.icon-blob {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2584C4, #00CC52);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    animation: blob-animation 8s infinite ease-in-out;
    opacity: 1;
    filter: blur(0px);
    transition: all 0.4s ease;
}

@keyframes blob-animation {
    0% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    }
    25% {
        border-radius: 50% 50% 40% 60% / 60% 40% 50% 40%;
    }
    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }
    75% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
    100% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    }
}

.feature-card:hover .icon-blob {
    transform: scale(1.1);
    filter: blur(2px);
}

.feature-icon-wrapper i {
    font-size: 2.5rem;
    color: white;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.feature-card h3 {
    color: white;
    margin-bottom: 1.2rem;
    font-size: 1.5rem;
    text-align: center;
    font-weight: 600;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    line-height: 1.6;
    text-align: center;
}

.feature-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    color: #00CC52;
    border: 1px solid #00CC52;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    gap: 10px;
}

.feature-btn span {
    position: relative;
}

.feature-btn i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.feature-btn:hover {
    background-color: #00CC52;
    color: white;
    box-shadow: 0 5px 15px rgba(0, 204, 82, 0.3);
}

.feature-btn:hover i {
    transform: translateX(4px);
}

/* About Section Styles */
.about {
    padding: 6rem 0;
    background-color: #1A1D21;
    color: white;
    position: relative;
    overflow: hidden;
}

.about-bg-decoration {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40%;
    height: 70%;
    background: radial-gradient(circle at 20% 80%, rgba(37, 132, 196, 0.1) 0%, transparent 60%);
    z-index: 0;
    pointer-events: none;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.about-text p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

.about-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.highlight-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: linear-gradient(135deg, #2584C4, #00CC52);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.highlight-icon i {
    color: white;
    font-size: 1.3rem;
}

.highlight-text h4 {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.highlight-text p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin-bottom: 0;
    line-height: 1.5;
}

.stats-container {
    position: relative;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 2rem;
}

.stat-item {
    background: rgba(45, 67, 89, 0.6);
    padding: 2rem 1.5rem;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-item::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, #2584C4, #00CC52);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.stat-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.stat-item:hover::before {
    transform: scaleX(1);
}

.stat-value {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.stat-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem auto;
    position: relative;
}

.stat-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2584C4 30%, #00CC52 70%);
    border-radius: 50%;
    opacity: 0.2;
    animation: pulse 2s infinite;
}

.stat-icon i {
    font-size: 1.8rem;
    color: #00CC52;
    position: relative;
    z-index: 1;
}

.counter {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    line-height: 1;
    transition: all 0.3s ease;
}

.stat-item:hover .counter {
    color: #00CC52;
}

.plus, .slash, .percent {
    font-size: 2.5rem;
    color: #00CC52;
    font-weight: 700;
    margin-left: 2px;
}

.stat-item p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0.5rem 0 0;
    font-size: 1rem;
    font-weight: 500;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.2;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.4;
    }
    100% {
        transform: scale(0.95);
        opacity: 0.2;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

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

/* Default style for animate-on-scroll elements before they animate */
.animate-on-scroll {
    opacity: 0;
    transition: all 0.5s ease;
}

/* Animation Classes */
.animate-on-scroll.fade-in,
.animate-on-scroll.slide-in-left,
.animate-on-scroll.slide-in-right,
.animate-on-scroll.slide-in-up {
    opacity: 1;
}

.slide-in-left {
    animation: slideInLeft 1s ease-in-out;
}

.slide-in-right {
    animation: slideInRight 1s ease-in-out;
}

.slide-in-up {
    animation: slideInUp 1s ease-in-out;
}

@keyframes slideInLeft {
    from { transform: translateX(-50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInRight {
    from { transform: translateX(50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

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

@keyframes bgPan {
    from { background-position: 0% 0%; }
    to { background-position: 200% 200%; }
}

/* Typewriter wrapper styles */
.typewriter-wrapper {
    display: block;
    color: #00CC52;
    font-weight: 700;
    line-height: 1.2;
    max-width: 100%;
}

#typewriter {
    color: #00CC52;
    font-weight: 700;
    font-size: 0.9em;
    white-space: normal;
    display: inline-block;
}

.cursor {
    color: #00CC52;
    font-weight: 700;
    animation: blink 0.75s step-end infinite;
}

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

@keyframes floatImage {
    0% {
        transform: translateY(0) rotateY(0deg) rotateX(0deg) scale(1);
        filter: drop-shadow(0 5px 15px rgba(0,0,0,0.2));
    }
    25% {
        transform: translateY(-10px) rotateY(2deg) rotateX(-1deg) scale(1.02);
        filter: drop-shadow(0 15px 20px rgba(0,0,0,0.3));
    }
    50% {
        transform: translateY(-15px) rotateY(0deg) rotateX(2deg) scale(1.05);
        filter: drop-shadow(0 20px 25px rgba(0,0,0,0.4));
    }
    75% {
        transform: translateY(-10px) rotateY(-2deg) rotateX(1deg) scale(1.02);
        filter: drop-shadow(0 15px 20px rgba(0,0,0,0.3));
    }
    100% {
        transform: translateY(0) rotateY(0deg) rotateX(0deg) scale(1);
        filter: drop-shadow(0 5px 15px rgba(0,0,0,0.2));
    }
}

.hero-image-item.active {
    opacity: 1;
    transform: scale(1) translateY(0) rotateX(0);
    animation: floatImage 8s ease-in-out infinite;
}

/* Initially hidden elements */
.initially-hidden {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.initially-hidden.visible {
    opacity: 1;
    visibility: visible;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.hub-icon {
    display: inline-block;
    width: 35px;
    height: 35px;
}

.we-help-you-to {
    animation: fadeIn 18s;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 0;
    }
    
    .hero .container {
        flex-direction: column-reverse;
        padding-top: 5rem;
        padding-bottom: 5rem;
    }
    
    .hero-content,
    .hero-image {
        width: 100%;
        padding-right: 0;
    }
    
    .hero-content {
        margin-top: 1rem;
        text-align: center;
    }
    
    .animated-heading {
        font-size: 2.8rem;
    }
    
    .typewriter-wrapper {
        display: block;
        margin-top: 0.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin: 1rem auto;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .hero-buttons a {
        width: 100%;
        text-align: center;
    }
    
    .hero-image-wrapper {
        min-height: 300px;
    }
    
    .hero-image-item {
        max-width: 280px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-text {
        order: 1;
    }
    
    .stats-container {
        order: 2;
    }
    
    .about-highlights {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
 
    .main-container {
        padding-left: 40px;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .hero-image-wrapper {
        min-height: 250px;
    }
    
    .hero-image-item {
        max-width: 220px;
    }
    
    .hero-image {
        margin-bottom: 2rem;
    }
    
    .typewriter-wrapper {
        display: block;
        margin-top: 0.5rem;
    }
    
    #typewriter {
        color: #00CC52;
    }
    
    .hero .container {
        padding: 6rem 1rem 3rem;
    }
    
    .hero-content {
        width: 100%;
        text-align: left;
    }
    
    .hero-image {
        width: 100%;
        margin-bottom: 2rem;
    }
    
    .animated-heading {
        font-size: 2.3rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .hero-buttons {
        justify-content: flex-start;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .feature-card {
        padding: 2rem 1.5rem;
    }
    
    .stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .section-tag {
        font-size: 0.75rem;
        padding: 5px 12px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hub-icon {
        font-size: 28px;
        width: 32px;
        height: 32px;
        margin-bottom: 2rem;
    }
}
:root {
    /* Define variables specific to this page or reuse from main styles */
    --tools-hero-bg: #1f2a37; /* Example dark blue/grey */
    --tools-hero-text: #e5e7eb; /* Light grey text */
    --tools-accent: var(--accent-color, #00CC52); /* Use global accent if available */
    --tools-card-bg: rgba(45, 67, 89, 0.6); /* Match about section card bg */
    --tools-card-hover-bg: rgba(45, 67, 89, 0.8);
    --tools-text-muted: #9ca3af;
}

/* --- Tools Page Hero Section --- */
.tools-hero-section { /* Add this class to the hero section div/section */
    background-color: var(--tools-hero-bg);
    color: var(--tools-hero-text);
    padding: 6rem 1rem 4rem; /* Adjust padding */
    text-align: center;
    position: relative;
    overflow: hidden;
    /* Add background patterns/gradients if desired, similar to homepage hero */
    background: linear-gradient(135deg, #111827 0%, #1f2a37 100%);
}

.tools-hero-section .section-tag { /* Reuse style from main.css if possible */
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    color: var(--tools-accent);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(0, 204, 82, 0.3);
}

.tools-hero-section h1 {
    font-size: 3rem; /* Adjust size */
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.tools-hero-section p.subtitle { /* Add class="subtitle" to the description paragraph */
    font-size: 1.1rem;
    color: var(--tools-text-muted);
    max-width: 650px;
    margin: 0 auto 3rem;
    line-height: 1.7;
}

/* --- Stats Section --- */
.tools-stats-container { /* Add this class to the stats section div */
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.tool-stat-card { /* Add this class to each stat card */
    background-color: var(--tools-card-bg);
    padding: 1.5rem 2rem;
    border-radius: 12px;
    text-align: center;
    min-width: 200px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
}

.tool-stat-card:hover {
    background-color: var(--tools-card-hover-bg);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.tool-stat-icon { /* Add this class to the icon wrapper */
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #2584C4, #00CC52);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem; /* Adjust icon size */
}

.tool-stat-value { /* Add this class to the value (e.g., 4, 99.9%) */
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.25rem;
    line-height: 1;
}

.tool-stat-label { /* Add this class to the label (e.g., TOOLS AVAILABLE) */
    font-size: 0.8rem;
    color: var(--tools-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Add styles for the actual tool cards below the hero */
.tools-grid { /* Add class="tools-grid" to the container holding tool cards */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 4rem 1rem; /* Add padding around the grid */
    max-width: 1200px;
    margin: 0 auto;
}

.tool-card { /* Add class="tool-card" to each tool article/div */
    background-color: var(--blog-card-bg); /* Reuse from blog or define new */
    border-radius: var(--border-radius, 8px);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow, 0 5px 15px rgba(0,0,0,0.05));
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow, 0 15px 30px rgba(0,0,0,0.1));
}

.tool-card-icon img { /* Style the tool icon */
    max-width: 60px;
    height: 60px;
    margin-bottom: 1rem;
    object-fit: contain;
}

.tool-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--blog-text); /* Reuse from blog or define new */
}

.tool-card p {
    font-size: 0.95rem;
    color: var(--blog-text-light); /* Reuse from blog or define new */
    margin-bottom: 1.5rem;
    flex-grow: 1; /* Allow description to push button down */
}

.tool-card .btn {
    /* Style the button */
    margin-top: auto; /* Push button to bottom */
}

.hero {
    text-align: center;
    padding: 0;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    color: white;
    margin-bottom: 0;
    margin-top: 0;
    position: relative;
    overflow: visible;
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 5;
    width: 100%;
    padding: 0 2rem;
}

.hero-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    animation: fadeInDown 1s ease-out forwards;
}

.hero-bg, .hero-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg {
    background: url('../images/hero-pattern.svg');
    opacity: 0.08;
    pointer-events: none;
    animation: bgPan 60s linear infinite;
    transform: scale(1.5);
}

.hero-particles {
    background: url('../images/particle-grid.svg');
    background-repeat: repeat;
    opacity: 0.05;
    animation: particles 40s linear infinite alternate;
    transform: scale(1.5) rotate(15deg);
    display: none;
}

.hero-content {
    padding-top: 15vw !important;
    padding-bottom: 10vw !important;
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out;
}

.page-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    background: linear-gradient(90deg, #ffffff, #e0e0e0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 5px 15px rgba(0,0,0,0.1);
    letter-spacing: -1px;
    line-height: 1.2;
    animation: fadeInUp 1.2s ease-out forwards;
}

.page-subtitle {
    font-size: 1.4rem;
    max-width: 800px;
    margin: 0 auto 3rem;
    position: relative;
    z-index: 1;
    opacity: 0.95;
    line-height: 1.7;
    font-weight: 300;
    animation: fadeInUp 1.4s ease-out forwards;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin: 3rem 0;
    flex-wrap: wrap;
    animation: fadeInUp 1.6s ease-out forwards;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    padding: 2rem 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.05);
    min-width: 180px;
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    z-index: -1;
    transition: opacity 0.5s ease;
    opacity: 0;
}

.stat-item:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.1);
}

.stat-item:hover::before {
    opacity: 1;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: #ffffff;
    transition: all 0.4s ease;
    position: relative;
}

.stat-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #3498db, #2980b9);
    z-index: -1;
    opacity: 0.7;
    animation: pulse 2s infinite;
}

.stat-item:hover .stat-icon {
    transform: scale(1.1);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 0.5rem;
    font-family: 'Montserrat', sans-serif;
    position: relative;
    display: inline-block;
}

.counter {
    display: inline-block;
}

.plus, .percent {
    font-size: 2rem;
    vertical-align: super;
    margin-left: 0.2rem;
    opacity: 0.8;
}

.stat-label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.8;
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
    animation: fadeInUp 1.8s ease-out forwards;
}

.hero-btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
    font-size: 0.85rem;
}

.hero-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    transition: all 0.5s ease;
    transform: translateY(100%);
    opacity: 0;
}

.hero-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.hero-btn:hover::before {
    transform: translateY(0);
    opacity: 1;
}

.hero-btn i {
    transition: transform 0.3s ease;
}

.hero-btn:hover i {
    transform: translateX(5px);
}

.primary-btn {
    background: linear-gradient(90deg, #3498db, #2980b9);
    color: white;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.primary-btn::before {
    background: linear-gradient(90deg, #2980b9, #3498db);
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.secondary-btn::before {
    background: rgba(255, 255, 255, 0.2);
}

.scroll-indicator {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    animation: bounce 2s infinite;
    z-index: 10;
}

.scroll-indicator a {
    color: white;
    font-size: 1.2rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-20px) translateX(-50%);
    }
    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

.tools-section {
    padding: 8rem 0;
    background-color: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.section-tag {
    display: block;
    background: linear-gradient(90deg, rgba(52, 152, 219, 0.2), rgba(52, 152, 219, 0.1));
    color: #2980b9;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0 auto 1.5rem;
    position: relative;
    max-width: fit-content;
    text-align: center;
}

.section-title {
    font-size: 3.2rem;
    color: #2c3e50;
    margin-bottom: 1.2rem;
    position: relative;
    display: inline-block;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.title-underline {
    height: 4px;
    width: 70px;
    background: linear-gradient(90deg, #3498db, #2980b9);
    margin: 1.5rem auto 2rem;
    border-radius: 2px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
    position: relative;
    z-index: 1;
}

.tool-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    transform-origin: center bottom;
    border: 1px solid rgba(0,0,0,0.03);
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: 0 20px 40px rgba(41, 128, 185, 0.2);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
    border-radius: 20px;
}

.tool-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: rgba(52, 152, 219, 0.1);
}

.tool-card:hover::before {
    opacity: 1;
}

.tool-icon {
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 240px;
    position: relative;
    overflow: hidden;
}

.icon-blob {
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(52, 152, 219, 0.1) 0%, rgba(52, 152, 219, 0) 70%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    transition: all 0.8s ease;
    animation: blob-animation 15s infinite alternate ease-in-out;
}

@keyframes blob-animation {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    33% {
        transform: translate(-60%, -40%) scale(1.2);
        opacity: 0.7;
    }
    66% {
        transform: translate(-40%, -60%) scale(0.9);
        opacity: 0.6;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.5;
    }
}

.tool-card:hover .icon-blob {
    animation-duration: 5s;
    background: radial-gradient(circle, rgba(52, 152, 219, 0.15) 0%, rgba(52, 152, 219, 0) 70%);
}

.tool-icon img {
    max-width: 75%;
    max-height: 75%;
    height: auto;
    width: auto;
    object-fit: contain;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.05));
    position: relative;
    z-index: 1;
}

.tool-card:hover .tool-icon img {
    transform: scale(1.1) translateY(-5px);
}

.tool-content {
    padding: 2.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.tool-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 2.5rem;
    right: 2.5rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(52, 152, 219, 0.2), transparent);
}

.tool-content h3 {
    color: #2c3e50;
    margin-bottom: 1.2rem;
    font-size: 1.7rem;
    position: relative;
    padding-bottom: 0.8rem;
    font-weight: 600;
}

.tool-content h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #2980b9);
    border-radius: 1.5px;
}

.tool-content p {
    color: #606060;
    margin-bottom: 2rem;
    flex-grow: 1;
    line-height: 1.7;
    font-size: 1.05rem;
}

.btn-tool {
    align-self: flex-start;
    background: linear-gradient(90deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 1rem 1.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

.btn-tool::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #2980b9, #3498db);
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.btn-tool:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(41, 128, 185, 0.3);
}

.btn-tool:hover::before {
    opacity: 1;
}

.btn-tool i {
    transition: transform 0.3s ease;
}

.btn-tool:hover i {
    transform: translateX(5px);
}

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

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

@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
    100% {
        transform: scale(0.95);
        opacity: 0.7;
    }
}

@keyframes bgPan {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 200%; }
}

@keyframes particles {
    0% { background-position: 0 0; }
    100% { background-position: 100px 100px; }
}

/* CTA Section Styles */
.cta-section {
    padding: 5rem 0;
    background-color: #f8f9fa;
    position: relative;
    margin-top: -1px;
}

.cta-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.1), transparent);
}

.cta-container {
    background: white;
    padding: 3.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.03);
}

.cta-container:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #3498db, #2980b9, #3498db);
    background-size: 200% 100%;
    animation: gradient 3s ease infinite;
}

.cta-container h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 2.2rem;
    font-weight: 600;
}

.cta-container p {
    color: #555;
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.btn-primary {
    background: linear-gradient(90deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 1rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn-primary:hover {
    background: linear-gradient(90deg, #2980b9, #3498db);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(41, 128, 185, 0.3);
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Fix for font issues */
.hero-btn, .btn-tool, .btn-primary {
    font-family: 'Montserrat', sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto;
    text-decoration: none;
}

/* Animated classes for scroll animations */
.animated-fade-in {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animated-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animated-fade-in-down {
    animation: fadeInDown 0.8s ease-out forwards;
}

.animated-zoom-in {
    animation: zoomIn 0.8s ease-out forwards;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .page-title {
        font-size: 3.2rem;
    }
    
    .tools-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-btn {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero-content {
        padding-top: 25vw !important;
        padding-bottom: 15vw !important;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .stat-item {
        width: 100%;
        max-width: 300px;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .scroll-indicator {
        bottom: 0.5rem;
    }
}

@media (min-width: 1200px) {
    .hero-content {
        padding-top: 12vw !important;
        padding-bottom: 8vw !important;
    }
}

/* Make sure animations and counters work properly */
.tool-card.animated-fade-in {
    opacity: 1;
    transform: translateY(0);
}

.section-header.animated-fade-in p {
    animation-delay: 0.2s;
}

.section-header.animated-fade-in .section-title {
    animation-delay: 0.1s;
}

.section-header.animated-fade-in .title-underline {
    animation-delay: 0.3s;
}

/* Additional hero section fixes */
main {
    position: relative;
    z-index: 2;
    background-color: #f8f9fa;
    padding-top: 0;
}

.tools-section {
    position: relative;
    z-index: 2;
}

/* Main wrapper fixes */
body, html {
    overflow-x: hidden;
}