/* ========================================
   StudioTools Pro - Main Stylesheet
   ======================================== */

/* --- Base Styles --- */
:root {
    --logo-blue: #3b82f6;
    --logo-green: #84cc16;
    --logo-orange: #f59e0b;
    --logo-red: #ef4444;
    --logo-purple: #9333ea;
    --dark-900: #020617;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #f8fafc;
    background-image:
        radial-gradient(#cbd5e1 1px, transparent 1px),
        radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.05) 0, transparent 50%),
        radial-gradient(at 100% 100%, rgba(132, 204, 22, 0.05) 0, transparent 50%);
    background-size: 24px 24px, 100% 100%, 100% 100%;
    background-attachment: fixed;
}

.font-brand {
    font-family: 'Outfit', sans-serif;
}

/* --- Beautiful Bengali Fonts --- */
.bengali-text {
    font-family: 'Tiro Bangla', 'Hind Siliguri', 'Noto Serif Bengali', serif;
    font-feature-settings: 'kern' 1;
    letter-spacing: 0.02em;
}

.bengali-heading {
    font-family: 'Galada', 'Tiro Bangla', cursive;
    font-weight: 400;
}

/* Apply Bengali font to all Bengali text automatically */
:lang(bn),
[lang="bn"] {
    font-family: 'Tiro Bangla', 'Hind Siliguri', 'Noto Serif Bengali', serif;
}

/* --- Animations --- */
.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(10px);
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.cursor-blink {
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* --- Parallax Blobs --- */
.parallax-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    pointer-events: none;
    transition: transform 0.1s ease-out;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    pointer-events: none;
}

/* --- Glass Card --- */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
}

/* --- Form Inputs --- */
.input-clean {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #1e293b;
    transition: all 0.2s ease;
}

.input-clean:focus {
    border-color: var(--logo-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

.input-clean::placeholder {
    color: #94a3b8;
}

.input-clean.focus-purple:focus {
    border-color: var(--logo-purple);
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.1);
}

.input-clean.focus-green:focus {
    border-color: var(--logo-green);
    box-shadow: 0 0 0 3px rgba(132, 204, 22, 0.1);
}

.input-clean.focus-orange:focus {
    border-color: var(--logo-orange);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.input-clean.focus-red:focus {
    border-color: var(--logo-red);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* --- Mobile Menu --- */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-menu-overlay {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

/* --- Tools Dropdown --- */
.tools-dropdown {
    position: relative;
    z-index: 9999;
}

.tools-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-weight: 600;
    color: #64748b;
    border-radius: 9999px;
    transition: all 0.2s;
    cursor: pointer;
    background: white;
    border: 1px solid #e2e8f0;
}

.tools-dropdown-btn:hover {
    background: #f8fafc;
    color: #1e293b;
    border-color: #cbd5e1;
}

.tools-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
    border: 1px solid #e2e8f0;
    padding: 8px;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 9999;
}

.tools-dropdown:hover .tools-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.tools-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    font-weight: 500;
    color: #475569;
    transition: all 0.15s;
    font-size: 14px;
}

.tools-dropdown-menu a:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.tools-dropdown-menu a i {
    width: 18px;
    height: 18px;
}

/* --- Tool Icon Colors --- */
.tool-icon-blue {
    color: #3b82f6;
}

.tool-icon-green {
    color: #22c55e;
}

.tool-icon-orange {
    color: #f59e0b;
}

.tool-icon-red {
    color: #ef4444;
}

.tool-icon-purple {
    color: #9333ea;
}

.tool-icon-pink {
    color: #ec4899;
}

.tool-icon-indigo {
    color: #6366f1;
}

.tool-icon-violet {
    color: #8b5cf6;
}

/* --- Contact Card Hover --- */
.contact-card:hover {
    transform: translateY(-2px);
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* --- Print Styles --- */
@media print {
    .no-print {
        display: none !important;
    }

    body {
        background: white !important;
        background-image: none !important;
    }

    .print-container {
        padding: 0;
        margin: 0;
        box-shadow: none;
        width: 100%;
        max-width: none;
        background: white !important;
        border: none !important;
    }
}

/* --- Utilities --- */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* --- Card Hover Effects --- */
.tool-card {
    will-change: transform, box-shadow;
}

/* --- Search Bar Animation --- */
#tool-search:focus+span {
    color: var(--logo-blue);
    border-color: rgba(59, 130, 246, 0.3);
}

/* --- Animated Title --- */
#animated-title {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}