:root {
    /* Background: Premium Dark Slate Theme (Matching PNG to ICO) */
    --bg-dark-blue: #0b0f19;       
    --bg-light-blue: #0f172a;
    --blob-1: rgba(139, 92, 246, 0.35);  /* Violet / Purple */
    --blob-2: rgba(56, 189, 248, 0.28);  /* Sky Blue / Cyan */
    --blob-3: rgba(99, 102, 241, 0.22);  /* Indigo */
    
    /* Front UI: Unified Brand Colors */
    --primary: #8b5cf6;         /* Violet */
    --secondary: #3b82f6;       /* Blue */
    --accent: #38bdf8;          /* Sky Blue */
    --gradient-brand: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%);
    --gradient-text: linear-gradient(135deg, #c084fc 0%, #38bdf8 100%);
    
    /* Utils */
    --text-dark: #0f172a;
    --text-light: #f8fafc;
    --text-muted: #94a3b8;
    --card-bg: rgba(30, 41, 59, 0.65);
    --card-border: rgba(255, 255, 255, 0.1);
    --nav-bg: rgba(15, 23, 42, 0.75);
}

* {
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
}

body {
    background-color: #0f172a;
    color: var(--text-light);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- Fixed Background Wrapper & Glowing Orbs --- */
.background-wrapper {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: -1;
    overflow: hidden; 
    pointer-events: none;
}

.blob-container {
    width: 100%; height: 100%;
    position: relative;
    filter: blur(80px);
}

.blob {
    position: absolute;
    border-radius: 50%;
    animation: moveBlobs 10s ease-in-out infinite alternate;
}

.blob:nth-child(1) { top: 5%; left: 5%; width: 450px; height: 450px; background: var(--blob-1); animation-delay: 0s; }
.blob:nth-child(2) { bottom: 5%; right: 5%; width: 500px; height: 500px; background: var(--blob-2); animation-delay: -5s; }
.blob:nth-child(3) { top: 40%; left: 35%; width: 380px; height: 380px; background: var(--blob-3); animation-delay: -2.5s; }

@keyframes moveBlobs {
    0% { transform: translate(0px, 0px) scale(1); }
    100% { transform: translate(35px, 50px) scale(1.1); }
}

/* --- Enhanced Header --- */
.site-header {
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--card-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    height: 45px;
    width: auto;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.site-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 12px rgba(56, 189, 248, 0.5));
}

.main-nav {
    display: flex;
    gap: 35px;
}

.main-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 0.3px;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: 0;
    left: 0;
    background: linear-gradient(to right, var(--primary), var(--accent));
    transition: width 0.3s ease;
    border-radius: 2px;
}

.main-nav a:hover, .main-nav a.active {
    color: #ffffff;
}

.main-nav a:hover::after, .main-nav a.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    font-size: 26px;
    color: var(--text-light);
    cursor: pointer;
}

/* --- Main Layout --- */
.main-content {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    width: 100%;
}

.hero {
    text-align: center;
    margin-bottom: 70px;
}

.hero h1 {
    font-size: 52px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.hero p {
    font-size: 19px;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
}

/* --- Premium Interactive Tool Cards --- */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.tool-card {
    background: var(--card-bg); 
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 35px 25px;
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* The Radial Gradient Glow (Tracks Mouse - Sky Blue & Violet) */
.tool-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(
        450px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
        rgba(56, 189, 248, 0.22) 0%,      /* Sky Blue Core */
        rgba(139, 92, 246, 0.15) 30%,     /* Violet */
        transparent 70%                   /* Fades out */
    );
    z-index: -2; 
    opacity: 0.1;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

/* Ensure content stays on top of animations */
.tool-card h3, 
.tool-card p, 
.tool-card .icon-wrapper {
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease, text-shadow 0.3s ease;
}

/* Icon Styling */
.icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    background: var(--gradient-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.icon-wrapper i {
    font-size: 28px;
    color: #ffffff;
}

/* Base Text Colors */
.tool-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    font-weight: 700;
    color: #ffffff; 
    letter-spacing: 0.3px;
}

.tool-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* --- HOVER EFFECTS --- */
.tool-card:hover {
    transform: translateY(-8px);
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 
        0 25px 50px -10px rgba(0, 0, 0, 0.65),              
        0 0 25px rgba(56, 189, 248, 0.15);
}

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

.tool-card:hover h3 {
    color: #ffffff;
    text-shadow: 0 0 15px rgba(56, 189, 248, 0.5);
}

.tool-card:hover p {
    color: #e2e8f0; 
}

.tool-card:hover .icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.5);
}

/* --- Inner Pages & Content Cards --- */
.content-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    margin-bottom: 40px;
    color: var(--text-muted);
    line-height: 1.8;
}

.content-card h2 { 
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 30px; 
    margin-bottom: 15px; 
    font-size: 28px; 
    font-weight: 700;
}

.content-card h3 { 
    color: #38bdf8; 
    margin-top: 25px; 
    margin-bottom: 10px; 
    font-size: 20px; 
    font-weight: 600;
}

.content-card p { 
    margin-bottom: 15px; 
    font-size: 16px; 
    color: #cbd5e1;
}

.content-card ul { 
    margin-bottom: 20px; 
    padding-left: 20px; 
    color: #cbd5e1;
}

.content-card strong {
    color: #f8fafc;
}

.content-card a { 
    color: var(--accent); 
    text-decoration: none; 
    transition: color 0.2s ease;
}

.content-card a:hover { 
    color: #ffffff;
    text-decoration: underline; 
}

/* --- Contact Form --- */
.contact-form { 
    display: flex; 
    flex-direction: column; 
    gap: 20px; 
    margin-top: 20px; 
}

.contact-form input, 
.contact-form textarea {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 18px;
    border-radius: 12px;
    color: #fff;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-form input:focus, 
.contact-form textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.contact-form button {
    background: var(--gradient-brand);
    color: white; 
    border: none; 
    padding: 18px; 
    border-radius: 12px;
    font-size: 18px; 
    font-weight: bold; 
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.contact-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.5);
}

/* --- Enhanced Footer --- */
.site-footer {
    background: rgba(11, 15, 25, 0.9);
    backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px 40px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.footer-brand .footer-logo {
    height: 45px;
    margin-bottom: 15px;
}

.footer-brand .tagline {
    font-size: 15px;
    color: #e2e8f0;
    margin-bottom: 10px;
}

.footer-brand .copyright {
    font-size: 13px;
    color: var(--text-muted);
}

.footer-contact h4, .footer-links h4 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.footer-contact h4::after, .footer-links h4::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 2px;
    background: linear-gradient(to right, var(--primary), var(--accent));
    bottom: -8px;
    left: 0;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 15px;
}

.footer-contact a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-contact a:hover {
    color: var(--accent);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.footer-links a::before {
    content: '›';
    margin-right: 8px;
    color: var(--accent);
    font-size: 18px;
    line-height: 1;
    transition: transform 0.3s ease;
}

.footer-links a:hover {
    color: #ffffff;
    transform: translateX(5px);
}

.footer-bottom-bar {
    height: 3px;
    width: 100%;
    background: linear-gradient(to right, #8b5cf6, #3b82f6, #38bdf8);
}

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

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

/* --- Responsive --- */
@media (max-width: 768px) {
    .main-nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(20px);
        padding: 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .main-nav.active-menu {
        display: flex;
    }
    .mobile-menu-toggle {
        display: block;
    }
    .hero h1 {
        font-size: 40px;
    }
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    .footer-contact h4::after, .footer-links h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .footer-contact p {
        justify-content: center;
    }
    .footer-links a {
        justify-content: center;
    }
}