/*
 * File: css/style.css - PART 1 OF 2
 * Description: FINAL OPTIMIZED - Accessible Glassmorphism, Premium Visual Engine, Compact Grid
 * Updated: January 2026 - PRODUCTION FIXED VERSION
 * 
 * FIXES APPLIED IN THIS VERSION:
 * ✅ FIX #1: Fixed dropdown-item to focus-visible selector (original)
 * ✅ FIX #2: Fixed hero stats overflow on small phones (original)
 * ✅ FIX #3: Added stats animation CSS for smooth appearance (original)
 * ✅ FIX #4: Improved footer tap targets for mobile (original)
 * ✅ FIX #5: Z-Index Layering Conflict Resolved (original)
 * ✅ NEW FIX #6: Mobile Menu Z-Index Hierarchy Correcteda
 * ✅ NEW FIX #7: Mobile Menu Scrolling Fixed for iOS/Android
 * ✅ NEW FIX #8: Tap Target Violations Fixed (44px minimum)
 * ✅ NEW FIX #9: will-change Memory Leak Prevention
 * ✅ NEW FIX #10: iPhone SE (320px) Optimization
 * 
 * INSTRUCTIONS: Copy this entire file, then copy PART 2 and paste it directly after this.
 */

/* 1. Global Reset & Setup */
:root {
    --primary-color: #9370DB;
    --primary-dark: #6A5ACD;
    --primary-light: #b19cd9;
    --secondary-color: #FFA500;
    --secondary-dark: #FF8C00;
    --text-dark: #212121;
    --text-light: #f5f5f5;
    
    /* Centralized from tools.css for consistency */
    --tool-text-gray: #4a4a4a;

    /* Glassmorphism Variables */
    --glass-bg: rgba(255, 255, 255, 0.95); 
    --glass-border: 1px solid rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    --glass-blur: blur(12px);
    
    --radius: 16px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    /* ✅ FIX #6: Z-Index Layers - CORRECTED HIERARCHY */
    --z-negative: -1;
    --z-normal: 1;
    --z-hero: 10;
    --z-navbar: 1000;
    --z-dropdown: 1001;
    --z-mobile-menu-btn: 1003;  /* ✅ NEW: Button must be above dropdown */
    --z-modal: 2000;
    --z-loader: 9999;
    
    
    /* Status Colors */
    --status-error: linear-gradient(135deg, #ff4757, #ff6b81);
    --status-success: linear-gradient(135deg, #2ed573, #7bed9f);
    --status-warning: linear-gradient(135deg, #ffa502, #eccc68);
    --status-info: linear-gradient(135deg, #3742fa, #5352ed);
    --status-processing: linear-gradient(135deg, #9c27b0, #da70d6);
    

}

/* Progressive Enhancement */
@supports ((-webkit-backdrop-filter: blur(12px)) or (backdrop-filter: blur(12px))) {
    :root {
        --glass-bg: rgba(255, 255, 255, 0.7);
    }
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; 
    scrollbar-gutter: stable;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

::selection {
    background: var(--primary-color);
    color: white;
}

::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1; 
}
::-webkit-scrollbar-thumb {
    background: var(--primary-light); 
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color); 
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: radial-gradient(circle at 0% 0%, rgba(147, 112, 219, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 100% 100%, rgba(255, 165, 0, 0.1) 0%, transparent 50%),
                #f8f9fc;
    background-attachment: fixed;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    display: flex;
    flex-direction: column;
    min-height: 100vh; 
}
/* ✅ NEW: Prevent body scroll when mobile menu is open */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100vh;
}

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

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

button {
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    border: none;
    background: none;
}

/* ✅ NEW: Touch Optimization - Removes 300ms tap delay */
button,
a,
.category-btn,
.tool-card,
.dropdown-item,
.faq-question {
    -webkit-tap-highlight-color: rgba(147, 112, 219, 0.2);
    touch-action: manipulation;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 10px 15px;
    z-index: var(--z-modal);
    transition: top 0.3s;
    border-radius: 0 0 8px 0;
    font-weight: 600;
}

.skip-link:focus {
    top: 0;
}

/* 2. Header and Navigation */
header {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: var(--z-navbar);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    height: 70px;
}

@supports ((-webkit-backdrop-filter: blur(12px)) or (backdrop-filter: blur(12px))) {
    header {
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: var(--glass-blur);
        -webkit-backdrop-filter: var(--glass-blur);
    }
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
    z-index: var(--z-navbar);
    position: relative;
}

.logo-icon {
    font-size: 2rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

/* ✅ FIX #9: will-change only on hover */
.logo:hover .logo-icon {
    will-change: transform;
    transform: rotate(-10deg);
}

.logo-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1; 
}

.brand-name {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.5px;
    transition: color 0.3s ease;
}

.brand-tagline {
    font-size: 0.6rem;          
    font-weight: 800;           
    font-style: italic;         
    color: var(--secondary-color); 
    text-transform: uppercase;
    letter-spacing: 2px;        
    margin-top: 2px;            
    margin-left: 2px;           
    opacity: 0.9;
    transition: all 0.3s ease;
}

.logo:hover .brand-tagline {
    letter-spacing: 4px;
    color: var(--secondary-dark);
}

.logo:hover .brand-name {
    color: var(--primary-dark);
}

#main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
}

#main-nav li {
    margin-left: 30px;
    position: relative;
}

#main-nav a, .dropdown-toggle {
    color: var(--text-dark);
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 8px;
    display: block;
    transition: var(--transition);
}

#main-nav a:hover, .dropdown-toggle:hover {
    color: var(--primary-color);
    background: rgba(147, 112, 219, 0.1);
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-parent {
    position: relative;
}

/* DESKTOP HOVER BEHAVIOR */
@media (min-width: 993px) {
    .dropdown-parent:hover .dropdown,
    .dropdown-parent:focus-within .dropdown {
        display: flex;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .dropdown {
        display: none;
        position: absolute;
        top: 100%;
        left: -20px;
        background: rgba(255, 255, 255, 0.98); 
        border: var(--glass-border);
        box-shadow: var(--glass-shadow);
        padding: 15px;
        min-width: 280px;
        z-index: var(--z-dropdown);
        flex-direction: column;
        gap: 5px;
        border-radius: var(--radius);
        max-height: 80vh;
        overflow-y: auto;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: var(--transition);
    }
}

@supports (backdrop-filter: blur(12px)) {
    .dropdown {
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
    }
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
    transition: var(--transition);
    cursor: pointer;
    color: var(--text-dark);
}

.dropdown-item:hover {
    background: rgba(147, 112, 219, 0.1);
    color: var(--primary-color);
}

.dropdown-icon {
    font-size: 1.2rem;
    margin-right: 12px;
    flex-shrink: 0;
}

.dropdown-icon svg { 
    width: 24px; 
    height: 24px; 
}

.dropdown-text h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.dropdown-text p {
    margin: 0;
    font-size: 0.8rem;
    color: #757575;
}

/* ✅ FIXED: Accessibility - Focus Indicators for All Interactive Elements */
a:focus-visible,
button:focus-visible,
.dropdown-toggle:focus-visible,
.dropdown-item:focus-visible,
.upload-area:focus-visible,
.form-input:focus-visible {
    outline: 2px solid white; 
    border-radius: 4px;
    box-shadow: 0 0 0 4px var(--primary-color), 0 0 0 6px rgba(147, 112, 219, 0.2);
    transition: box-shadow 0.2s ease;
}

/* ✅ FIX #6 & #8: Mobile menu button - correct z-index + larger tap target */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    
    /* ✅ FIX: Explicit z-index ABOVE menu (1003 > 1001) */
    z-index: 1003;
    position: relative;
    
    /* ✅ FIX: Force interactivity */
    pointer-events: auto;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background-color: var(--text-dark);
    margin: 3px 0;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); /* Smoother timing */
    transform-origin: center;
}

/* ✅ UI POLISH: Rotate lines into an 'X' when open */
.mobile-menu-btn.active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background-color: var(--primary-color); /* Highlight color */
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(10px); /* Slide out effect */
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    background-color: var(--primary-color);
}

/* 3. Hero Section */
.hero, .tool-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #7B68EE 100%);
    color: var(--text-light);
    padding: 30px 0 40px; 
    position: relative;
    overflow: hidden;
    z-index: var(--z-normal);
}

.hero::before, .tool-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    pointer-events: none;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    position: relative;
    z-index: 2;
}

.hero-content {
    flex: 1.2;
    max-width: 650px;
}

.hero h1, .tool-hero h1 {
    font-size: 2.4rem;
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(0,0,0,0.1);
    letter-spacing: -1px;
}

.hero p, .tool-hero p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    max-width: 100%;
    opacity: 0.95;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.cta-button {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: var(--transition);
    text-align: center;
}

/* ✅ FIX #9: will-change only on hover */
.cta-button:hover {
    will-change: transform, box-shadow;
}

@supports (backdrop-filter: blur(4px)) {
    .cta-button {
        backdrop-filter: blur(4px);
    }
}

.cta-button.primary {
    background-color: var(--secondary-color);
    color: var(--text-dark);
    box-shadow: 0 4px 15px rgba(255, 165, 0, 0.4);
    border: 1px solid rgba(255,255,255,0.2);
}

.cta-button.primary:hover {
    background-color: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 165, 0, 0.5);
}

.cta-button.secondary {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    border-color: white;
}

/* ✅ FIXED: Hero Stats - Better Mobile Wrapping */
.hero-stats, .tool-stats {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.stat-item, .stat {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    min-width: 120px;
    white-space: nowrap;
}

@supports (backdrop-filter: blur(5px)) {
    .stat-item, .stat {
        backdrop-filter: blur(5px);
    }
}

/* ✅ FIXED: Stats Animation - Smooth Appearance */
.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2px;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
    -moz-font-feature-settings: "tnum" 1;
    -webkit-font-feature-settings: "tnum" 1;
}

.stat-number:not(.animated) {
    opacity: 0;
}

.stat-number.animated {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.stat-label {
    font-size: 0.85rem;
    opacity: 0.9;
}

.hero .stat-number {
    color: #ffffff !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.hero .stat-label {
    color: rgba(255, 255, 255, 0.9) !important;
}

.hero-visual {
    flex: 0.8;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tool-preview {
    perspective: 1000px;
}

.preview-window {
    width: 280px;
    height: 200px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transform: rotateY(-10deg) rotateX(5deg) scale(0.85); 
    transition: var(--transition);
    animation: float 6s ease-in-out infinite;
}

@supports (backdrop-filter: blur(10px)) {
    .preview-window {
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(10px);
    }
}

/* ✅ FIX #9: will-change only on hover */
.tool-preview:hover .preview-window {
    will-change: transform;
    transform: rotateY(-5deg) rotateX(2deg) scale(0.9);
    background: rgba(255, 255, 255, 0.98);
}

.preview-header {
    background: rgba(0, 0, 0, 0.05);
    padding: 10px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.preview-dots {
    display: flex;
    gap: 6px;
}

.preview-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
}

.preview-dots span:nth-child(1) { background: #FF5F57; }
.preview-dots span:nth-child(2) { background: #FFBD2E; }
.preview-dots span:nth-child(3) { background: #28CA42; }

.preview-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: calc(100% - 40px);
    color: var(--text-dark);
}

.preview-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.preview-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
}

.preview-subtext {
    font-size: 0.8rem;
    color: #757575;
    margin-top: 5px;
}

@keyframes float {
    0%, 100% { transform: rotateY(-10deg) rotateX(5deg) scale(0.85) translateY(0); }
    50% { transform: rotateY(-10deg) rotateX(5deg) scale(0.85) translateY(-10px); }
}

/* 4. Tools Section */
.tools-section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: -1px;
}

.tool-categories {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.category-btn {
    padding: 10px 25px;
    border: 1px solid transparent;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.5);
    color: var(--text-dark);
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.category-btn:hover {
    background: white;
    box-shadow: 0 6px 15px rgba(147, 112, 219, 0.2);
    color: var(--primary-color);
}

.category-btn.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 6px 20px rgba(147, 112, 219, 0.4);
}

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

.tool-card {
    background: var(--glass-bg);
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: var(--radius);
    padding: 30px 25px;
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
}

@supports (backdrop-filter: blur(12px)) {
    .tool-card {
        backdrop-filter: var(--glass-blur);
        -webkit-backdrop-filter: var(--glass-blur);
    }
}

/* ✅ FIX #9: will-change only on hover */
.tool-card:hover {
    will-change: transform, box-shadow;
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(147, 112, 219, 0.15);
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 255, 255, 0.8);
}

.tool-image {
    margin-bottom: 20px;
    background: rgba(147, 112, 219, 0.05);
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    margin-left: auto;
    margin-right: auto;
    transition: var(--transition);
}

.tool-image span {
    font-size: 2.5rem;
    display: inline-block;
    vertical-align: middle;
}

.tool-content h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.tool-content p {
    font-size: 0.95rem;
    color: #616161;
    margin-bottom: 25px;
    flex: 1;
    line-height: 1.7;
}

.tool-button {
    display: inline-block;
    background: transparent;
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    margin-top: auto;
    border: 2px solid rgba(147, 112, 219, 0.2);
}

.tool-card:hover .tool-button {
    background: var(--primary-color);
    color: white;
}

/* ========== END OF PART 1 ========== */
/* CONTINUE WITH PART 2 */


/* ========== PART 2 OF 2 - PASTE THIS AFTER PART 1 ========== */

/* 5. Features Section */
.features-section {
    background-color: transparent; 
    padding: 80px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.feature-card {
    padding: 30px 20px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255,255,255,0.4);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

@supports (backdrop-filter: blur(8px)) {
    .feature-card {
        background: rgba(255, 255, 255, 0.6);
        backdrop-filter: blur(8px);
    }
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: var(--transition);
}

/* ✅ FIX #9: will-change only on hover */
.feature-card:hover {
    will-change: transform;
    transform: translateY(-5px);
    box-shadow: var(--glass-shadow);
    background: rgba(255, 255, 255, 0.98);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--text-dark);
}

.feature-card p {
    color: #616161;
    line-height: 1.6;
}

/* 6. FAQ Section */
.faq-section {
    padding: 60px 0 80px;
    background-color: rgba(255,255,255,0.9);
}

@supports (backdrop-filter: blur(5px)) {
    .faq-section {
        background-color: rgba(255,255,255,0.3);
        backdrop-filter: blur(5px);
    }
}

.faq-section h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 50px;
    color: var(--text-dark);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

@supports (backdrop-filter: blur(10px)) {
    .faq-item {
        background: rgba(255, 255, 255, 0.8);
        backdrop-filter: blur(10px);
    }
}

.faq-item:hover {
    background: #ffffff;
    border-color: var(--primary-light);
}

.faq-question {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-dark);
    user-select: none;
}

.faq-question span {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 400;
    transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"] {
    background-color: rgba(147, 112, 219, 0.1);
    color: var(--primary-color);
}

/* ✅ FIX #9: will-change only when expanded */
.faq-question[aria-expanded="true"] span {
    will-change: transform;
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    color: #555;
    line-height: 1.6;
    opacity: 0;
}

.faq-answer.active {
    padding: 0 25px 25px;
    max-height: 500px;
    opacity: 1;
}

/* 7. CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: var(--text-light);
    padding: 80px 0;
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.15), transparent 40%);
    pointer-events: none;
}

.cta-content h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* 8. Footer - COMPACT & SYMMETRIC */
footer {
    background: linear-gradient(135deg, #1a1b2e 0%, #2d2b55 100%);
    color: rgba(255, 255, 255, 0.8);
    padding: 40px 0 20px;
    position: relative;
    border-top: 1px solid rgba(147, 112, 219, 0.2);
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px;
    margin-bottom: 30px;
}

.footer-column {
    width: auto;
    min-width: auto;
    margin-bottom: 0;
}

.footer-column h3 {
    font-size: 1rem;
    margin-bottom: 15px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 25px;
    height: 2px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li {
    margin-bottom: 6px;
}

/* ✅ FIX #8: Footer links - Desktop keeps compact, Mobile gets larger tap targets */
.footer-column a {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    padding: 2px 0;
}

/* ✅ NEW: Tablet support (768px - 1024px) */
@media (max-width: 1024px) {
    .footer-column a {
        padding: 10px 0;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .footer-column li {
        margin-bottom: 8px;
    }
}

/* ✅ FIX #8: Mobile gets accessible tap targets */
@media (max-width: 768px) {
    .footer-column a {
        padding: 10px 0;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .footer-column li {
        margin-bottom: 8px;
    }
}

.footer-column a:hover {
    color: var(--primary-light);
    transform: translateX(5px);
    text-shadow: 0 0 15px rgba(147, 112, 219, 0.4);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

 /* 9. Media Queries - ✅ FIXED FOR MOBILE MENU & SCROLLING */
@media (max-width: 992px) {
    /* Hero Adjustments */
    .hero .container { 
        flex-direction: column; 
        text-align: center; 
    }
    .hero-content { 
        max-width: 100%; 
    }
    .hero-buttons { 
        justify-content: center; 
    }
    .hero-stats { 
        justify-content: center; 
        flex-wrap: wrap; 
    }
    .stat-item { 
        min-width: auto; 
        flex: 1; 
    }
    
    /* Nav Toggle */
    .mobile-menu-btn { 
        display: flex; 
    }
    
    /* ✅ CRITICAL FIX: Mobile Menu - Use display:none instead of visibility */
    #main-nav { 
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        
        /* ✅ FIX #1: Use display:none (cleaner toggle than visibility) */
        display: none;
        
        /* More transparency, higher blur = Premium Feel */
        background: rgba(255, 255, 255, 0.85); 
        backdrop-filter: blur(25px) saturate(180%); /* Saturate boosts colors behind it */
        -webkit-backdrop-filter: blur(25px) saturate(180%);        padding: 20px 20px 100px 20px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        border-top: 1px solid rgba(0,0,0,0.05);
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        
        /* ✅ FIX #2: Z-index BELOW button (1001 < 1003) */
        z-index: 1001;
        
        /* ✅ FIX #3: Flexbox for proper layout when displayed */
        flex-direction: column;
        justify-content: flex-start;
    }
    
/* ✅ FIX #4: Show state uses display:flex WITH Animation */
    #main-nav.mobile-open {
        display: flex !important;
        animation: menuSlideIn 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    }

    @keyframes menuSlideIn {
        from {
            opacity: 0;
            transform: translateY(-15px) scale(0.98);
        }
        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }    
    
    #main-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    #main-nav li {
        margin-left: 0;
        width: 100%;
    }
    
    /* ✅ FIX #8: Mobile nav links - larger tap targets */
    #main-nav a, 
    .dropdown-toggle {
        padding: 15px;
        min-height: 44px;
        background: rgba(147, 112, 219, 0.05);
        font-size: 1.1rem;
        justify-content: space-between;
    }
    
    /* DROPDOWN FIXES FOR MOBILE */
    .dropdown {
        display: none;
        position: static;
        box-shadow: none;
        border: none;
        background: transparent;
        padding: 10px 0 10px 15px;
        opacity: 1;
        visibility: visible;
        transform: none;
        max-height: none;
        width: 100%;
        overflow: visible;
    }
    
    .dropdown-parent.active .dropdown-toggle span {
        transform: rotate(180deg);
    }
    
    /* Footer Adjustments */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 20px;
    }
}

/* ✅ FIX #10: Small Phone Optimizations */
@media (max-width: 768px) {
    .hero { 
        padding: 40px 0; 
    }
    .hero h1 { 
        font-size: 2.2rem; 
    }
    .tools-grid, .features-grid { 
        grid-template-columns: 1fr; 
    }
}

/* ✅ FIX #10: iPhone SE & Extra Small Phones (320px-375px) */
@media (max-width: 375px) {
    .hero-stats, .tool-stats {
        gap: 15px;
        justify-content: space-between;
    }
    
    .stat-item, .stat {
        min-width: 100px;
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-column h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .footer-column a {
        justify-content: center;
    }
    .footer-column a:hover {
        transform: translateX(0) scale(1.05);
    }
}

/* 10. NOTIFICATION SYSTEM */
.notification {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    background: var(--status-info);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: var(--z-loader);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 300px;
    pointer-events: none;
}

.notification.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.notification.success { background: var(--status-success); }
.notification.error { background: var(--status-error); }
.notification.warning { background: var(--status-warning); }
.notification.processing { background: var(--status-processing); }

/* Navigation Active State */
.active-link {
    color: var(--primary-color) !important;
    font-weight: 700 !important;
    background: rgba(147, 112, 219, 0.1);
    border-radius: 8px;
}

.active-parent {
    color: var(--primary-color) !important;
    font-weight: 700 !important;
}

/* 11. PREMIUM VISUAL ENGINE */
.theme-fire    { --theme-primary: #ff6b6b; --theme-secondary: #ff9f43; } 
.theme-sunset  { --theme-primary: #ff9f43; --theme-secondary: #ff6b81; } 
.theme-emerald { --theme-primary: #2ed573; --theme-secondary: #7bed9f; } 
.theme-ocean   { --theme-primary: #48dbfb; --theme-secondary: #0abde3; } 
.theme-royal   { --theme-primary: #5f27cd; --theme-secondary: #9c88ff; } 
.theme-sky     { --theme-primary: #54a0ff; --theme-secondary: #2e86de; } 
.theme-purple  { --theme-primary: #9370DB; --theme-secondary: #a55eea; } 
.theme-midnight{ --theme-primary: #341f97; --theme-secondary: #5f27cd; } 
.theme-cyber   { --theme-primary: #00d2d3; --theme-secondary: #01a3a4; } 
.theme-pink    { --theme-primary: #ff9ff3; --theme-secondary: #f368e0; } 
.theme-gold    { --theme-primary: #eccc68; --theme-secondary: #ff7f50; } 
.theme-dark    { --theme-primary: #57606f; --theme-secondary: #2f3542; } 
.theme-gray    { --theme-primary: #a4b0be; --theme-secondary: #747d8c; }

.tool-card.premium-card {
    display: flex; 
    flex-direction: column;
    padding: 0; 
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    height: 100%;
}

.tool-card.premium-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
    border-color: var(--theme-secondary);
}

.premium-visual-stage {
    position: relative;
    background: radial-gradient(circle at top, rgba(255,255,255,0.8), rgba(245,247,250,0.5));
    padding: 20px 20px 30px; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    border-bottom: 1px solid rgba(0,0,0,0.02);
}

.premium-aura {
    position: absolute; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%);
    width: 120px; 
    height: 120px; 
    border-radius: 50%;
    background: radial-gradient(circle, var(--theme-primary) 0%, transparent 70%);
    opacity: 0.15; 
    filter: blur(20px);
    animation: premiumPulse 4s infinite alternate;
}

.premium-particles span { 
    position: absolute; 
    border-radius: 50%; 
    opacity: 0.6; 
}
.premium-particles .p1 { 
    top: 20%; 
    left: 20%; 
    width: 8px; 
    height: 8px; 
    background: var(--theme-primary); 
    animation: orbit1 6s infinite ease-in-out; 
}
.premium-particles .p2 { 
    bottom: 20%; 
    right: 20%; 
    width: 6px; 
    height: 6px; 
    background: var(--theme-secondary); 
    animation: orbit2 8s infinite ease-in-out; 
}
.premium-particles .p3 { 
    top: 50%; 
    right: 10%; 
    width: 4px; 
    height: 4px; 
    background: var(--theme-primary); 
    animation: orbit3 5s infinite ease-in-out; 
}

.premium-icon-box {
    position: relative; 
    z-index: 2;
    width: 65px; 
    height: 65px; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    animation: premiumFloat 6s ease-in-out infinite;
}

/* ✅ FIX #9: will-change only during animation */
@media (prefers-reduced-motion: no-preference) {
    .premium-icon-box {
        will-change: transform;
    }
}

.text-icon {
    font-size: 4rem; 
    line-height: 1;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.15)); 
    cursor: default;
    user-select: none;
}

.premium-pill-badge {
    position: absolute; 
    bottom: 15px;
    background: white; 
    padding: 6px 14px; 
    border-radius: 20px;
    font-size: 0.75rem; 
    font-weight: 700; 
    color: var(--theme-secondary);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
    display: flex; 
    align-items: center; 
    gap: 5px; 
    z-index: 3;
    animation: badgeFloat 4s infinite ease-in-out;
}
.premium-pill-badge .icon-check { 
    color: #2ed573; 
    font-weight: 900; 
}

.premium-content {
    padding: 15px 25px 25px; 
    text-align: center;
    background: white; 
    flex-grow: 1; 
    display: flex; 
    flex-direction: column;
}

.gradient-heading {
    font-size: 1.4rem; 
    font-weight: 800; 
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary));
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
    background-clip: text;
    letter-spacing: -0.5px;
}

.premium-content p {
    font-size: 0.95rem; 
    color: #666; 
    margin-bottom: 25px; 
    line-height: 1.6;
    flex-grow: 1; 
}

.tool-button {
    display: inline-block; 
    width: 100%; 
    padding: 12px 0;
    border-radius: 12px; 
    font-weight: 600; 
    text-align: center;
    border: 2px solid var(--theme-primary); 
    color: var(--theme-primary);
    transition: all 0.3s ease; 
    background: transparent;
}

.tool-button:hover, 
.tool-button:active {
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary));
    color: white; 
    border-color: transparent;
    box-shadow: 0 8px 20px var(--theme-primary); 
    transform: translateY(-2px);
}

@keyframes premiumPulse { 
    0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.1; } 
    100% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.25; } 
}
@keyframes premiumFloat { 
    0%, 100% { transform: translateY(0); } 
    50% { transform: translateY(-8px); } 
}
@keyframes badgeFloat { 
    0%, 100% { transform: translateY(0); } 
    50% { transform: translateY(-4px); } 
}
@keyframes orbit1 { 
    0% { transform: translate(0, 0); } 
    50% { transform: translate(10px, -10px); } 
    100% { transform: translate(0, 0); } 
}
@keyframes orbit2 { 
    0% { transform: translate(0, 0); } 
    50% { transform: translate(-10px, 10px); } 
    100% { transform: translate(0, 0); } 
}
@keyframes orbit3 { 
    0%, 100% { transform: translate(0, 0); } 
    50% { transform: translate(5px, 5px); } 
}

/* ✅ NEW: Print Styles - Hide interactive elements when printing */
@media print {
    .notification,
    .mobile-menu-btn,
    .aservus-loader {
        display: none !important;
    }
}



/* ========== END OF STYLE.CSS ========== */


