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

:root {
    --primary-bg: #000000;
    --secondary-bg: #111111;
    --card-bg: #1A1A1A;
    --text-primary: #FFFFFF;
    --text-secondary: #CCCCCC;
    --border-color: #2A2A2A;
    --hover-color: #FFFFFF;
    
    /* Button Theme Mapping */
    --btn-bg: #FFFFFF;
    --btn-text: #000000;
    
    /* Legacy helper mappings for compatibility */
    --primary-blue: #FFFFFF;
    --light-blue: #CCCCCC;
    --bg-dark: #000000;
    --card-dark: #1A1A1A;
    --border-dark: #2A2A2A;
    --glow-color: rgba(255, 255, 255, 0.06);
    --white: #FFFFFF;
    --black: #000000;
    
    --font-sans: 'Inter', sans-serif;
    --font-display: 'Outfit', sans-serif;
    
    --header-height: 80px;
}

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

body {
    background-color: var(--primary-bg);
    color: var(--text-primary);
    font-family: var(--font-sans);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Gradients & Grid */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.04) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.02) 0%, transparent 40%),
        linear-gradient(rgba(255, 255, 255, 0.003) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.003) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
    z-index: -1;
    pointer-events: none;
}

/* Container */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Glassmorphism utility */
.glass-panel {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 12px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
}

.btn-primary {
    background: var(--btn-bg);
    color: var(--btn-text);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(255, 255, 255, 0.2);
    background: #E5E5E5;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--black);
    transform: translateY(-2px);
    border-color: var(--white);
}

/* Badge tags */
.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-popular {
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge-trending {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.badge-new {
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    border: 1px solid var(--border-color);
}

/* Header & Sticky Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

header.scrolled {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    height: 70px;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

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

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    z-index: 1001;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--white);
    color: var(--black);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.logo-icon i {
    font-size: 1.3rem;
}

.logo-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.2), transparent);
    top: 0;
    left: -100%;
    animation: shine-effect 4s infinite;
}

@keyframes shine-effect {
    0% { left: -100%; }
    20% { left: 100%; }
    100% { left: 100%; }
}

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

/* Nav Menu */
.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-link:hover, .nav-item.active .nav-link {
    color: var(--white);
    background: rgba(255, 255, 255, 0.05);
}

/* Header Search */
.header-search {
    position: relative;
    max-width: 240px;
    width: 100%;
}

.header-search input {
    width: 100%;
    padding: 8px 12px 8px 36px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--white);
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.header-search input:focus {
    outline: none;
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.header-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
}

/* Mega Menu Styles */
.mega-menu-trigger {
    cursor: pointer;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    width: 95vw;
    max-width: 1200px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    padding: 24px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    background: var(--secondary-bg);
}

.nav-item:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.mega-column h4 {
    color: var(--white);
    font-size: 0.95rem;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mega-list {
    list-style: none;
    max-height: 250px;
    overflow-y: auto;
    padding-right: 8px;
}

.mega-list::-webkit-scrollbar {
    width: 4px;
}

.mega-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.mega-list a {
    display: block;
    padding: 6px 8px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    border-radius: 4px;
}

.mega-list a:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.05);
    padding-left: 12px;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--white);
    transition: all 0.3s ease;
}

/* Mobile Nav Open */
.mobile-nav-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.mobile-nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.mobile-nav-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -7px);
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--border-color);
    padding: 100px 32px 32px;
    z-index: 998;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 24px;
    overflow-y: auto;
}

.mobile-nav.open {
    right: 0;
}

.mobile-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mobile-nav-link {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-secondary);
    display: block;
    padding: 8px 0;
}

.mobile-nav-link:hover, .mobile-nav-item.active .mobile-nav-link {
    color: var(--white);
}

.mobile-mega-section {
    margin-top: 8px;
    padding-left: 16px;
    border-left: 1px solid var(--border-color);
}

.mobile-mega-title {
    color: var(--white);
    font-size: 0.9rem;
    margin-bottom: 8px;
    cursor: pointer;
}

.mobile-mega-list {
    list-style: none;
    display: none;
    flex-direction: column;
    gap: 8px;
    max-height: 160px;
    overflow-y: auto;
    margin-bottom: 12px;
}

.mobile-mega-list.open {
    display: flex;
}

.mobile-mega-list a {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* Hero Section */
.hero {
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 80px;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-tagline {
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    border: 1px solid var(--border-color);
    padding: 6px 16px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 20px;
    font-family: var(--font-display);
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 20px;
    background: linear-gradient(to right, var(--white), #AAAAAA, var(--white));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    color: var(--text-secondary);
    font-size: 1.15rem;
    margin-bottom: 32px;
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

/* Stats Section */
.hero-stats {
    display: flex;
    gap: 32px;
    margin-bottom: 32px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--white);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.popular-tags {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.popular-tags span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.tag-link {
    font-size: 0.85rem;
    color: var(--white);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 4px 12px;
    border-radius: 6px;
}

.tag-link:hover {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
}

/* Hero Right: 3D Rotating Shapes */
.hero-graphic {
    position: relative;
    height: 450px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1200px;
}

.scene-3d {
    width: 320px;
    height: 320px;
    position: relative;
    transform-style: preserve-3d;
    animation: floating-anim 6s ease-in-out infinite;
}

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

.card-3d {
    position: absolute;
    width: 180px;
    height: 220px;
    border-radius: 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    border: 1.5px solid var(--border-color);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8), 0 0 25px rgba(255, 255, 255, 0.05);
    background: var(--card-bg);
    transition: all 0.5s ease;
}

/* Premium White Reflective Glows */
.card-3d::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle at center, var(--glow-color) 0%, transparent 60%);
    z-index: -1;
    pointer-events: none;
    opacity: 0.8;
}

.card-pdf {
    transform: rotateY(0deg) translateZ(120px);
    animation: rotate-card-1 12s linear infinite;
}

.card-jpg {
    transform: rotateY(120deg) translateZ(120px);
    animation: rotate-card-2 12s linear infinite;
}

.card-converter {
    transform: rotateY(240deg) translateZ(120px);
    animation: rotate-card-3 12s linear infinite;
}

/* 3D rotate logic with transform-style */
@keyframes rotate-card-1 {
    0% { transform: rotateY(0deg) translateZ(120px) rotateX(10deg); }
    100% { transform: rotateY(360deg) translateZ(120px) rotateX(10deg); }
}

@keyframes rotate-card-2 {
    0% { transform: rotateY(120deg) translateZ(120px) rotateX(10deg); }
    100% { transform: rotateY(480deg) translateZ(120px) rotateX(10deg); }
}

@keyframes rotate-card-3 {
    0% { transform: rotateY(240deg) translateZ(120px) rotateX(10deg); }
    100% { transform: rotateY(600deg) translateZ(120px) rotateX(10deg); }
}

.card-3d-icon {
    font-size: 3rem;
    color: var(--white);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.15));
}

.card-3d-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--white);
}

.card-3d-badge {
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Tool Directory Section */
.directory-section {
    padding: 80px 0;
    border-top: 1px solid var(--border-color);
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 12px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.search-filter-wrapper {
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.directory-search {
    position: relative;
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
}

.directory-search input {
    width: 100%;
    padding: 16px 20px 16px 52px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    color: var(--white);
    font-size: 1.05rem;
    font-family: var(--font-sans);
    transition: all 0.3s ease;
}

.directory-search input:focus {
    outline: none;
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.08);
}

.directory-search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.3rem;
    color: var(--text-secondary);
}

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-tab {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 100px;
    font-weight: 500;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.filter-tab:hover, .filter-tab.active {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

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

.tool-card {
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 230px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--card-bg);
}

.tool-card:hover {
    transform: translateY(-6px);
    border-color: var(--white);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.05), 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.tool-card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.02) 0%, transparent 60%);
    pointer-events: none;
    transition: all 0.4s ease;
}

.tool-card:hover .tool-card-glow {
    background: radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
}

.tool-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.tool-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.tool-card:hover .tool-icon-box {
    background: var(--white);
    color: var(--black);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.15);
}

.tool-card h3 {
    font-size: 1.15rem;
    color: var(--white);
    margin-bottom: 8px;
}

.tool-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 16px;
}

.tool-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tool-category-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: capitalize;
}

.tool-card-action {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.tool-card:hover .tool-card-action {
    color: var(--white);
    padding-left: 4px;
}

/* Call To Action Block */
.cta-block {
    padding: 60px 40px;
    text-align: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, transparent 100%);
    margin: 80px 0;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.cta-block::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
    top: -50px;
    right: -50px;
}

.cta-block h2 {
    font-size: 2.2rem;
    margin-bottom: 16px;
    color: var(--white);
}

.cta-block p {
    color: var(--text-secondary);
    margin-bottom: 28px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* SEO Content & Article Layout */
.seo-article {
    padding: 80px 0;
    border-top: 1px solid var(--border-color);
}

.article-container {
    max-width: 900px;
    margin: 0 auto;
}

.seo-article h1, .seo-article h2, .seo-article h3 {
    color: var(--white);
    margin-top: 36px;
    margin-bottom: 16px;
}

.seo-article h1 { font-size: 2.5rem; }
.seo-article h2 { font-size: 1.8rem; border-bottom: 1px solid var(--border-color); padding-bottom: 8px;}
.seo-article h3 { font-size: 1.3rem; }

.seo-article p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.seo-article ul, .seo-article ol {
    margin-bottom: 24px;
    padding-left: 24px;
    color: var(--text-secondary);
}

.seo-article li {
    margin-bottom: 8px;
}

/* Breadcrumbs navigation */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.breadcrumbs a {
    color: var(--text-secondary);
}

.breadcrumbs a:hover {
    color: var(--white);
}

.breadcrumbs li::after {
    content: '/';
    margin-left: 8px;
}

.breadcrumbs li:last-child::after {
    content: '';
}

.breadcrumbs li:last-child {
    color: var(--white);
    font-weight: 500;
}

/* FAQ Accordion */
.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 32px;
}

.faq-item {
    padding: 18px 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--white);
    font-family: var(--font-display);
    font-size: 1.1rem;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: max-height 0.3s cubic-bezier(0, 1, 0, 1), margin-top 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    margin-top: 12px;
    transition: max-height 0.3s cubic-bezier(1, 0, 1, 0), margin-top 0.3s ease;
}

.faq-arrow {
    transition: transform 0.3s ease;
    color: var(--white);
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
}

/* Footer Section */
footer {
    background: #080808;
    border-top: 1px solid var(--border-color);
    padding: 80px 0 40px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.02) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 0.8fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    max-width: 280px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Premium Black & White Social Hovers */
.social-icon:hover {
    color: var(--black);
    background: var(--white);
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    border-color: var(--white);
}

.footer-col h3 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-family: var(--font-display);
}

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

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 6px;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-legal-links {
    display: flex;
    gap: 20px;
}

/* Main Layout Grid for Tools Pages */
.tool-page-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: calc(var(--header-height) + 30px);
    padding-bottom: 60px;
}

/* Sticky top logo animation for visual indicators */
.spinner {
    border: 3px solid rgba(255, 255, 255, 0.1);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border-left-color: var(--white);
    animation: spin-anim 1s linear infinite;
}

@keyframes spin-anim {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsiveness adjustments */
@media (max-width: 1200px) {
    .mega-menu {
        grid-template-columns: repeat(3, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr;
    }
    .footer-col:last-child {
        grid-column: span 3;
    }
}

@media (max-width: 992px) {
    .nav-links, header .header-search, .header-cta {
        display: none;
    }
    .mobile-nav-toggle {
        display: flex;
    }
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .hero-content {
        align-items: center;
    }
    .hero h1 {
        font-size: 2.8rem;
    }
    .hero-stats {
        justify-content: center;
    }
    .popular-tags {
        justify-content: center;
    }
    .hero-graphic {
        height: 350px;
    }
    .mega-menu {
        display: none;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-col:last-child {
        grid-column: span 1;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .footer-legal-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero-btns {
        flex-direction: column;
        width: 100%;
    }
    .hero-btns .btn {
        width: 100%;
    }
    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }
    .stat-item {
        align-items: center;
    }
}
