﻿@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    /* User Theme Colors - Premium Purple Glow */
    --primary-color: #A855F7;     /* Primary Purple */
    --secondary-color: #D8B4FE;   /* Light Accent Purple */
    --bg-color: #0B0A0F;          /* Background Dark Purple/Black */
    --card-color: #14121A;        /* Card Dark Violet */
    --text-color: #FFFFFF;        /* Main Text White */
    --accent-color: #C084FC;      /* Accent Lavender */

    /* Adapt legacy variables to new theme */
    --primary-orange: var(--primary-color);
    --deep-orange: #9333EA;       /* A deeper purple for gradients/hovers */
    --black: var(--bg-color);
    --soft-black: var(--card-color);
    --white: #ffffff;             /* Keep absolute white for text and highlights */
    --off-white: #f8fafc;         /* Slate-50 for clean light text */
    --light-gray: #242030;        /* Card border color */
    --text-dark: var(--text-color);
    --text-muted: #94a3b8;        /* Slate-400 for readable muted text */
    --orange-glow: rgba(168, 85, 247, 0.25);
    
    /* Legacy aliases for maximum code compatibility and exact compliance */
    --bg-white: var(--card-color);  /* Card bg */
    --bg-light: var(--bg-color);   /* Body bg */
    --bg-card: var(--card-color);
    --bg-dark: var(--card-color);
    --bg-black: #050407;          /* Slightly darker background for footer/black overlays */
    --text-light: #f8fafc;
    --border-color: #242030;      /* Card border color */
    --border-orange: rgba(168, 85, 247, 0.15);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 20px;            /* Card border radius must be 20px */
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Gradient Sets */
    --gradient-orange: linear-gradient(135deg, var(--primary-orange) 0%, var(--deep-orange) 100%);
    --gradient-hover: linear-gradient(135deg, var(--primary-orange) 0%, var(--secondary-color) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--card-color) 0%, var(--bg-color) 100%);
    --gradient-secondary-hover: linear-gradient(135deg, var(--card-color) 0%, #242030 100%);
}

/* Base resets & layouts */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
    text-decoration: none;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.4s, color 0.4s;
}

/* Premium Book Flip Lite Transition */
.page-container {
    perspective: 1500px;
    transform-style: preserve-3d;
    will-change: transform, opacity;
    transition: transform 0.55s cubic-bezier(0.25, 1, 0.5, 1), 
                opacity 0.55s cubic-bezier(0.25, 1, 0.5, 1),
                box-shadow 0.55s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Entering page (after load) */
body.page-flip-enter .page-container {
    transform: perspective(1500px) rotateY(12deg) translate3d(15px, 0, -40px);
    opacity: 0;
    box-shadow: -15px 15px 40px rgba(0, 0, 0, 0.25);
}

.page-flip-enter-active {
    transform: perspective(1500px) rotateY(0deg) translate3d(0, 0, 0);
    opacity: 1;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

/* Exiting page (before navigation) */
.page-flip-exit {
    transform: perspective(1500px) rotateY(-12deg) translate3d(-15px, 0, -40px);
    opacity: 0;
    box-shadow: 15px 15px 40px rgba(0, 0, 0, 0.25);
}

/* Header */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header slide-down on page load */
header.header-flip {
    animation: headerSlideDown 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes headerSlideDown {
    0% { transform: translateY(-20px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

/* Logo animation styles */
.logo-container {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.5rem;
    font-weight: 800;
    cursor: pointer;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: var(--gradient-orange);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    box-shadow: 0 4px 10px var(--orange-glow);
    transition: var(--transition);
}

.logo-text span {
    color: var(--primary-orange);
}

/* Logo animations simplified to static states to support unified RGB border rules */
.logo-container.pulse .logo-icon,
.logo-container.rotate .logo-icon,
.logo-container.glow .logo-icon,
.logo-container.bounce .logo-icon {
    transform: none;
    box-shadow: none;
}

/* Navigation Links */
nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    list-style: none;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-orange);
    background-color: rgba(255, 111, 0, 0.05);
}

/* Header Search Placement at right side */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-search {
    position: relative;
    width: 220px;
    transition: var(--transition);
}

.header-search input {
    width: 100%;
    height: 40px;
    padding: 0 16px 0 40px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
}

.header-search input:focus {
    border-color: var(--primary-orange);
    background-color: var(--bg-white);
    box-shadow: 0 0 12px var(--orange-glow);
    width: 260px;
}

.header-search i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.95rem;
    pointer-events: none;
}

/* Search suggestions dropdown list */
.search-results-dropdown {
    position: absolute;
    top: 48px;
    right: 0;
    width: 260px;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    display: none;
    z-index: 1001;
    overflow: hidden;
}

.search-result-item {
    display: block;
    padding: 10px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.search-result-item:hover {
    background-color: rgba(255, 111, 0, 0.05);
    color: var(--primary-orange);
    padding-left: 20px;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-no-results {
    padding: 12px 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
}

/* Hamburger menu button */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--text-dark);
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    background: radial-gradient(circle at top, rgba(168, 85, 247, 0.15) 0%, var(--black) 85%);
    color: var(--white);
    padding: 100px 0 120px;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: center;
    max-width: 1200px; /* Content width 1200px */
    margin: 0 auto;
    padding: 0 24px;
}

/* Soft Glowing Orange Circles */
.glowing-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.22;
    z-index: 1;
    pointer-events: none;
}
.glowing-circle.circle-1 {
    width: 320px;
    height: 320px;
    background-color: var(--primary-orange);
    top: -50px;
    right: 15%;
}
.glowing-circle.circle-2 {
    width: 450px;
    height: 450px;
    background-color: var(--deep-orange);
    bottom: -120px;
    left: 8%;
}

/* Hero Badges Grid */
.hero-badges {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 36px;
}
.hero-badges .badge {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--off-white);
}
.hero-badges .badge i {
    color: var(--primary-orange);
    font-size: 1.15rem;
}

.hero-content {
    z-index: 10;
    position: relative;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #050407;
    color: var(--primary-orange);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 24px;
    border: none !important;
    background-clip: padding-box;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero-title span {
    color: var(--primary-orange);
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* 3D Globe visual block */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.globe-container {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

canvas#globeCanvas {
    width: 100%;
    height: 100%;
    cursor: grab;
}

canvas#globeCanvas:active {
    cursor: grabbing;
}

.globe-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.2rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: white;
    text-shadow: 0 0 20px rgba(168, 85, 247, 0.8);
    pointer-events: none;
    z-index: 5;
    text-shadow: 0 0 25px rgba(168, 85, 247, 0.9);
}

/* Premium Button Hover Effects */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 999px; /* Button border radius is 999px */
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    border: none !important;
    transition: transform 0.2s cubic-bezier(0.25, 0.8, 0.25, 1), background-color 0.2s ease, color 0.2s ease !important;
    position: relative;
    z-index: 1;
}

/* Button Active state */
.btn:active {
    transform: translateY(1px) scale(0.96) !important;
}

/* 1. Primary Buttons: Orange-to-Black gradient hover */
.btn-primary {
    background: var(--gradient-orange);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--deep-orange) 0%, var(--primary-orange) 100%);
}

/* 2. Secondary Buttons: White-to-Orange hover */
.btn-secondary {
    background: var(--gradient-secondary);
    color: var(--text-dark);
}

.btn-secondary:hover {
    background: var(--gradient-orange);
    color: white;
}

/* 3. Outline Buttons: Fill with orange on hover */
.btn-outline {
    background-color: transparent;
    color: var(--text-dark);
}

.hero-section .btn-outline {
    color: var(--white);
}

.btn-outline:hover {
    background: var(--gradient-orange);
    color: white;
}

body.dark-hero .btn-outline {
    color: white;
}

/* General Layout sections */
.section {
    padding: 90px 20px; /* Desktop section padding is 90px 20px */
    max-width: 1200px; /* Maximum content width is 1200px */
    margin: 0 auto;
}

/* Section Title & Desc block */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.section-title span {
    color: var(--primary-orange);
}

.section-desc {
    font-size: 1rem;
    color: var(--text-muted);
}

/* Tool Grid Cards Layout */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
}

.tool-card {
    background-color: var(--bg-card);
    border: none !important;
    border-radius: var(--radius-lg);
    padding: 32px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    z-index: 1;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease !important;
    will-change: transform;
}

.tool-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15) !important;
}

.tool-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background-color: rgba(255, 111, 0, 0.05);
    color: var(--primary-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 24px;
    transition: var(--transition);
}

.tool-card:hover .tool-card-icon {
    background-color: var(--primary-orange);
    color: white;
    box-shadow: 0 4px 12px var(--orange-glow);
}

.tool-card-category {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-orange);
    margin-bottom: 8px;
}

.tool-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.tool-card-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    flex-grow: 1;
    margin-bottom: 24px;
    line-height: 1.6;
}

.tool-card-action {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-orange);
    gap: 8px;
}

.tool-card-action i {
    font-size: 0.75rem;
    transition: var(--transition);
}

.tool-card:hover .tool-card-action i {
    transform: translateX(4px);
}

/* Category cards overview on Homepage - Arranged in rows of three columns */
.category-overview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 60px;
}

@media (max-width: 992px) {
    .category-overview-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .category-overview-grid {
        grid-template-columns: 1fr;
    }
}

.category-card {
    background-color: var(--bg-white);
    border: none !important;
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    position: relative;
    z-index: 1;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease !important;
    will-change: transform;
}

.category-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15) !important;
}

.category-card-icon {
    font-size: 2rem;
    color: var(--primary-orange);
    margin-bottom: 16px;
}

.category-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.category-card-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-orange);
}

/* FAQ Accordion Styling */
.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background-color: var(--bg-white);
    margin-bottom: 16px;
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    transition: var(--transition);
}

.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.faq-item.active .faq-question {
    color: var(--primary-orange);
    background-color: rgba(255, 111, 0, 0.02);
}

.faq-item.active .faq-answer {
    padding: 0 24px 20px;
    max-height: 300px;
    border-top: 1px solid var(--border-color);
}

/* AdSense space container styling */
.adsense-box {
    margin: 32px auto;
    width: 100%;
    max-width: 970px;
    display: none; /* Hidden by user request; ads will be added manually */
    justify-content: center;
    align-items: center;
}

.adsense-placeholder {
    width: 100%;
    height: 90px;
    background-color: var(--bg-white);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Modals Setup (Dynamic modal) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(11, 11, 15, 0.7); /* Dark blur overlay base */
    backdrop-filter: blur(12px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-wrapper {
    width: 90%;
    max-width: 900px;
    max-height: 90vh; /* Max height is 90vh */
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: 0 25px 60px rgba(0,0,0,0.25), 0 0 40px rgba(255, 122, 0, 0.1);
    overflow-y: auto;
    position: relative;
    transform: scale(0.92);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-wrapper {
    transform: scale(1);
}

.modal-header-section {
    padding: 32px 40px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.modal-close-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.25rem;
    transition: var(--transition);
}

.modal-close-btn:hover {
    background-color: var(--primary-orange);
    color: white;
    transform: rotate(90deg);
}

.modal-title-header {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-orange);
    margin-bottom: 8px;
}

.modal-desc-header {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.modal-body {
    padding: 40px;
}

/* Tool Interface inside modal */
.tool-workarea {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 28px;
    margin-bottom: 36px;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.form-input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background-color: var(--bg-white);
    color: var(--text-dark);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

textarea.form-input {
    height: 120px;
    padding: 12px 16px;
    resize: vertical;
}

.form-input:focus {
    border-color: var(--primary-orange);
    box-shadow: 0 0 10px var(--orange-glow);
}

.tool-actions-box {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.tool-output-wrapper {
    margin-top: 24px;
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
}

.output-value-container {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 20px;
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--text-dark);
    overflow-x: auto;
    min-height: 60px;
}

/* Image tools upload drag area */
.drag-drop-zone {
    border: 2px dashed var(--primary-orange);
    border-radius: var(--radius-sm);
    padding: 40px 20px;
    text-align: center;
    background-color: rgba(255, 111, 0, 0.02);
    cursor: pointer;
    transition: var(--transition);
}

.drag-drop-zone:hover {
    background-color: rgba(255, 111, 0, 0.05);
}

.drag-drop-zone i {
    font-size: 2.5rem;
    color: var(--primary-orange);
    margin-bottom: 12px;
}

/* Image tool canvas and previews */
.preview-images-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

.preview-box {
    max-width: 100%;
    max-height: 350px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    overflow: hidden;
    margin-bottom: 20px;
}

.preview-box img,
.preview-box canvas {
    max-width: 100%;
    max-height: 100%;
    display: block;
    margin: 0 auto;
}

/* Modal SEO Content Layout */
.modal-seo-content {
    border-top: 1px solid var(--border-color);
    padding-top: 36px;
    margin-top: 36px;
}

.modal-seo-content h2 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin: 28px 0 12px;
}

.modal-seo-content h3 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin: 20px 0 10px;
}

.modal-seo-content p {
    color: var(--text-muted);
    margin-bottom: 16px;
    font-size: 0.95rem;
    line-height: 1.7;
}

.modal-seo-content ul,
.modal-seo-content ol {
    margin-left: 24px;
    margin-bottom: 16px;
    color: var(--text-muted);
}

/* Word compare output styling */
.text-diff-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.diff-pane {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 16px;
    height: 200px;
    overflow-y: auto;
    font-family: monospace;
    font-size: 0.85rem;
    white-space: pre-wrap;
}

/* Footer elements simplified */
footer {
    background-color: #0A0F1D; /* Deep navy slate black */
    color: #94A3B8; /* Slate-400 for standard footer text readability */
    padding: 70px 0 40px;
    border-top: 1px solid rgba(249, 115, 22, 0.15); /* Premium subtle primary accent border */
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-brand {
    max-width: 360px; /* Reduced from 480px to allow single-row layout on desktop */
}

.footer-brand p {
    color: #94A3B8; /* Slate-400 */
    margin-top: 16px;
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-socials {
    display: flex;
    gap: 14px;
    margin-top: 24px;
}

.footer-social-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: #1E293B;
    border: none !important;
    color: #F8FAFC;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    position: relative;
    z-index: 1;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), background-color 0.3s ease, color 0.3s ease !important;
    will-change: transform;
}

.footer-social-icon:hover {
    background-color: #000000 !important;
    color: #FFFFFF !important;
    transform: scale(1.15) translateY(-2px) !important;
}

.footer-links-group {
    display: flex;
    gap: 50px;
}

.footer-column-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #FFFFFF; /* High contrast header text */
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
}

.footer-column-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 24px;
    height: 3px;
    background-color: var(--primary-orange);
    border-radius: 2px;
}

.footer-links-list {
    list-style: none;
}

.footer-links-list li {
    margin-bottom: 12px;
}

.footer-links-list a {
    color: #94A3B8; /* Slate-400 */
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links-list a:hover {
    color: var(--primary-orange);
    padding-left: 6px;
}

.footer-bottom {
    border-top: 1px solid #1E293B; /* Clean divider line */
    padding-top: 30px;
    padding-bottom: 30px; /* Safe padding at the page bottom to prevent clipping */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.footer-copyright {
    color: #64748B; /* Slate-500 */
    font-size: 0.85rem;
    width: 100%;
    text-align: center;
}

.footer-social-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-socials-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.final-cta-section {
    padding: 90px 20px;
    background-color: var(--bg-light);
}

.cta-banner {
    background: linear-gradient(135deg, var(--black) 0%, var(--soft-black) 100%);
    border: 1px solid var(--border-orange);
    border-radius: var(--radius-lg);
    padding: 60px 40px;
    color: var(--white);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15), 0 0 25px rgba(255, 122, 0, 0.05);
    position: relative;
    overflow: hidden;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.cta-banner::before {
    content: '';
    position: absolute;
    width: 180px;
    height: 180px;
    background-color: var(--primary-orange);
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.18;
    top: -60px;
    right: -60px;
}

.cta-banner::after {
    content: '';
    position: absolute;
    width: 180px;
    height: 180px;
    background-color: var(--deep-orange);
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.18;
    bottom: -60px;
    left: -60px;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.25;
}

.cta-title span {
    color: var(--primary-orange);
}

.cta-desc {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 650px;
    margin: 0 auto 32px;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

/* Scroll Reveal CSS Animation classes */
.reveal-item,
.scroll-animate {
    opacity: 0 !important;
    transform: translate3d(0, 30px, 0) !important;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) !important;
    will-change: opacity, transform;
    backface-visibility: hidden;
}

.reveal-active,
.show-element {
    opacity: 1 !important;
    transform: translate3d(0, 0, 0) !important;
}

/* Responsiveness adjustments */
@media (max-width: 1024px) {
    .section {
        padding: 70px 18px; /* Tablet section padding */
    }
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 32px;
    }
    .hero-desc {
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-badges {
        justify-items: center; /* Center badge cells on screens <= 1024px */
    }
    .hero-badges .badge {
        justify-content: center; /* Center text & icon alignment inside flex badge box */
    }
    .hero-visual {
        margin-top: 20px;
    }
    .tools-grid {
        grid-template-columns: repeat(2, 1fr); /* Tool cards in 2 columns on tablet */
    }
    .footer-top {
        flex-direction: column;
        align-items: flex-start;
    }
    .footer-links-group {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 768px) {
    nav {
        display: none;
    }
    .menu-toggle {
        display: block;
    }
    .header-search {
        display: none; /* In mobile menu, search will appear in menu or below it */
    }
    .header-actions {
        gap: 12px;
    }
    .globe-container {
        width: 300px;
        height: 300px;
    }
    .globe-label {
        font-size: 1.6rem;
    }
    .footer-links-group {
        flex-direction: column;
        gap: 30px;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    
    /* Smooth mobile menu style */
    nav.mobile-active {
        display: flex !important;
        flex-direction: column;
        position: absolute;
        top: 76px;
        left: 0;
        width: 100%;
        background-color: var(--black);
        border-bottom: 1px solid var(--border-orange);
        padding: 20px 16px;
        z-index: 999;
        animation: slideDown 0.3s ease forwards;
    }
    nav.mobile-active .nav-links {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 10px;
    }
    nav.mobile-active .nav-link {
        color: var(--white);
        display: block;
        padding: 12px 16px;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    nav.mobile-active .nav-link:hover {
        background-color: rgba(255, 122, 0, 0.1);
    }
    
    /* Search inside/below mobile menu */
    .mobile-search-container {
        display: block;
        width: 100%;
        margin-top: 15px;
        padding: 0 16px;
    }
    
    .mobile-search-container .header-search {
        display: block;
        width: 100%;
    }
    
    .mobile-search-container .header-search input {
        width: 100% !important;
        background-color: var(--soft-black);
        border: 1px solid var(--border-orange);
        color: var(--white);
    }
}

@media (max-width: 480px) {
    .section {
        padding: 50px 16px; /* Mobile section padding */
    }
    .hero-title {
        font-size: 1.95rem; /* responsive title size */
        word-break: break-word;
        overflow-wrap: break-word;
    }
    .globe-container {
        width: 240px;
        height: 240px;
    }
    .globe-label {
        font-size: 1.25rem;
        letter-spacing: 1px;
    }
    .hero-badges {
        grid-template-columns: 1fr; /* Single column on mobile to prevent clipping */
        gap: 12px;
    }
    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }
    .hero-actions .btn {
        width: 100%; /* Buttons stack vertically on mobile */
    }
    .tools-grid {
        grid-template-columns: 1fr; /* Tool cards in 1 column on mobile */
    }
    .tool-actions-box {
        flex-direction: column;
        gap: 10px;
    }
    .tool-actions-box .btn {
        width: 100%; /* Buttons stack vertically */
    }
    .modal-wrapper {
        width: 94vw; /* Mobile modal width is 94vw */
        max-height: 90vh; /* Mobile modal max-height is 90vh */
        padding: 20px 16px;
    }
}

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

/* Interactive Category Tabs Core Classes (Simple Fade-in, Non-3D) */
.flipbook-wrapper {
    position: relative;
    width: 100%;
    min-height: 400px;
    overflow: visible;
}

.page-flip-container {
    width: 100%;
    position: relative;
}

.flip-page {
    display: none;
    width: 100%;
}

.flip-page.flip-active {
    display: block;
    will-change: transform, opacity;
    animation: categorySlide 250ms ease-out forwards;
}

@keyframes categorySlide {
    0% {
        transform: translate3d(20px, 0, 0);
        opacity: 0;
    }
    100% {
        transform: translate3d(0, 0, 0);
        opacity: 1;
    }
}

@keyframes categoryFadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* Categories Navigation Tab styles */
.category-tabs-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 30px auto;
    max-width: 1200px;
    padding: 0 16px;
    position: relative;
    z-index: 10;
}

.category-tab {
    background-color: var(--card-color);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 10px 24px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.category-tab:hover {
    border-color: var(--primary-orange);
    color: var(--white);
    box-shadow: 0 0 12px var(--orange-glow);
}

.category-tab.active {
    background: var(--gradient-orange);
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 4px 14px var(--orange-glow);
}

/* Position picker for watermarks */
.position-picker {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    width: 100%;
    max-width: 240px;
    margin-top: 8px;
}

.position-btn {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 8px;
    text-align: center;
    font-size: 0.8rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.position-btn.active, .position-btn:hover {
    border-color: var(--primary-orange);
    color: var(--white);
    background-color: rgba(168, 85, 247, 0.1);
}

/* PDF files list UI styling */
.pdf-file-list {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.pdf-file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--white);
}

.pdf-file-item span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 75%;
}

.pdf-file-item button {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
}

.pdf-file-item button:hover {
    color: #f87171;
    transform: scale(1.15);
}

/* -------------------------------------------------------------
   A. PREMIUM MULTI-COLOR RGB RUNNING BORDER SYSTEM
   ------------------------------------------------------------- */
@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@keyframes rotateRGB {
    0% {
        --angle: 0deg;
    }
    100% {
        --angle: 360deg;
    }
}

/* Core classes/hooks that get the premium RGB border system */
.rgb-running-border,
.btn,
.tool-card,
.category-card,
.service-card,
.pricing-card,
.feature-card,
.footer-social-icon {
    position: relative;
    z-index: 1;
}

/* Ensure padding-box background clip is respected on hover, borders are transparent */
.btn,
.tool-card,
.category-card,
.footer-social-icon {
    border: none !important;
    background-clip: padding-box;
}

/* Always-on RGB borders for explicit running border classes */
.rgb-running-border::before {
    content: '';
    position: absolute;
    inset: -1.2px;
    border-radius: inherit;
    padding: 1.2px;
    background: conic-gradient(from var(--angle), #ff004c, #ff8c00, #ffd700, #00ff88, #00e5ff, #0066ff, #8a2be2, #ff00ff, #ff004c);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
    z-index: -1;
    animation: rotateRGB 4s linear infinite, fadeInRgbBorder 3.5s ease forwards;
    opacity: 0;
}

/* Subtle, low-brightness RGB border for buttons */
.btn::before {
    content: '';
    position: absolute;
    inset: -1.2px;
    border-radius: inherit;
    padding: 1.2px;
    background: conic-gradient(from var(--angle), #ff004c, #ff8c00, #ffd700, #00ff88, #00e5ff, #0066ff, #8a2be2, #ff00ff, #ff004c);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
    z-index: -1;
    animation: rotateRGB 6s linear infinite, fadeInRgbBtn 3.5s ease forwards;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn:hover::before {
    opacity: 0.55;
}

/* Hover-activated RGB borders (for cards) */
.tool-card::before,
.category-card::before,
.service-card::before,
.pricing-card::before,
.feature-card::before {
    content: '';
    position: absolute;
    inset: -1.2px;
    border-radius: inherit;
    padding: 1.2px;
    background: conic-gradient(from var(--angle), #ff004c, #ff8c00, #ffd700, #00ff88, #00e5ff, #0066ff, #8a2be2, #ff00ff, #ff004c);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
    z-index: -1;
    animation: rotateRGB 4s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tool-card:hover::before,
.category-card:hover::before,
.service-card:hover::before,
.pricing-card:hover::before,
.feature-card:hover::before {
    opacity: 0.75;
}

/* Always-on RGB borders for footer social icons */
.footer-social-icon::before {
    content: '';
    position: absolute;
    inset: -1.2px;
    border-radius: inherit;
    padding: 1.2px;
    background: conic-gradient(from var(--angle), #ff004c, #ff8c00, #ffd700, #00ff88, #00e5ff, #0066ff, #8a2be2, #ff00ff, #ff004c);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
    z-index: -1;
    animation: rotateRGB 4s linear infinite, fadeInRgbBorder 3.5s ease forwards;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.footer-social-icon:hover::before {
    opacity: 1;
}


/* Specific override to completely exclude the logo icon from the RGB border system */
.logo-icon::before,
.logo-icon::after {
    content: none !important;
    display: none !important;
    animation: none !important;
    opacity: 0 !important;
}

/* Make all buttons share the same default color (dark card color) and hover soft glow shadow transition */
.btn,
.btn-primary,
.btn-secondary,
.btn-outline,
.hero-section .btn-outline,
body.dark-hero .btn-outline {
    background: var(--card-color) !important;
    color: white !important;
    border: none !important;
    box-shadow: none;
}

.btn:hover,
.btn-primary:hover,
.btn-secondary:hover,
.btn-outline:hover {
    background: var(--card-color) !important;
    color: white !important;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.45) !important;
}

/* Smooth lift and scaling effects for buttons, cards, and social icons */
.btn {
    transition: transform 0.2s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease, color 0.2s ease !important;
    will-change: transform;
}

.btn:hover {
    transform: translateY(-2px) !important;
}

.btn:active {
    transform: translateY(1px) scale(0.96) !important;
}

.tool-card,
.category-card {
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease !important;
    will-change: transform;
}

.tool-card:hover,
.category-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15) !important;
}

.footer-social-icon {
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), background-color 0.3s ease, color 0.3s ease !important;
    will-change: transform;
}

.footer-social-icon:hover {
    transform: scale(1.15) translateY(-2px) !important;
}

/* Subtle border outline for container */
.footer-socials {
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(30, 41, 59, 0.4);
    width: fit-content;
    gap: 14px;
}

/* Image Blur Tool - Selective blur interactive styles */
#blurSelectiveControls {
    background-color: rgba(168, 85, 247, 0.05); /* Light primary purple background tint */
    border: 1px dashed rgba(168, 85, 247, 0.2);
    padding: 14px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    text-align: center;
    transition: var(--transition);
}

.btn-sm {
    padding: 8px 20px !important;
    font-size: 0.8rem !important;
    border-radius: 999px !important;
}

.canvas-crosshair {
    cursor: crosshair !important;
}

/* Secondary Button Hover Color Override */
.btn-secondary:hover {
    background: #000000 !important;
    background-color: #000000 !important;
}

/* Color input field styling */
input[type="color"].form-input {
    padding: 2px 6px;
    height: 42px;
    cursor: pointer;
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
}

