/* ================================================
   FREE TOOLS HUB — Professional CSS
   Theme: Purple Modern Minimal
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&display=swap');

/* ---- CSS Variables ---- */
:root {
    --purple-900: #1e0a3c;
    --purple-800: #2d1160;
    --purple-700: #3d1a7a;
    --purple-600: #5b21b6;
    --purple-500: #7c3aed;
    --purple-400: #a855f7;
    --purple-300: #c084fc;
    --purple-100: #f3e8ff;
    --purple-50:  #faf5ff;

    --violet-500: #8b5cf6;
    --violet-400: #a78bfa;
    --fuchsia-500: #d946ef;
    --fuchsia-400: #e879f9;

    --gray-950: #0a0a0f;
    --gray-900: #111118;
    --gray-800: #1c1c27;
    --gray-700: #2e2e3f;
    --gray-600: #52526b;
    --gray-500: #71718a;
    --gray-400: #9898b0;
    --gray-300: #c5c5d5;
    --gray-200: #e2e2ec;
    --gray-100: #f4f4f8;
    --gray-50:  #fafafc;
    --white: #ffffff;

    --font-display: 'Syne', sans-serif;
    --font-body: 'DM Sans', sans-serif;

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 16px rgba(92,33,182,0.10), 0 2px 8px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 40px rgba(92,33,182,0.15), 0 4px 16px rgba(0,0,0,0.08);
    --shadow-xl: 0 24px 64px rgba(92,33,182,0.20), 0 8px 24px rgba(0,0,0,0.10);
    --shadow-glow: 0 0 40px rgba(124,58,237,0.25);

    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--gray-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

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

.container-sm {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ================================================
   HEADER / NAV
   ================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gray-200);
    transition: var(--transition);
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    gap: 24px;
}

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--purple-600), var(--fuchsia-500));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(124,58,237,0.35);
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-name {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 17px;
    color: var(--gray-900);
    letter-spacing: -0.03em;
}

.logo-tagline {
    font-size: 10px;
    color: var(--gray-500);
    font-weight: 400;
    margin-top: 2px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Desktop Nav */
.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.main-nav a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-600);
    transition: var(--transition);
    white-space: nowrap;
}

.main-nav a:hover {
    color: var(--purple-600);
    background: var(--purple-50);
}

.main-nav a.active {
    color: var(--purple-600);
    background: var(--purple-50);
    font-weight: 600;
}

.main-nav a i {
    font-size: 13px;
    opacity: 0.7;
}

.nav-cta {
    background: linear-gradient(135deg, var(--purple-600), var(--fuchsia-500)) !important;
    color: white !important;
    padding: 9px 20px !important;
    border-radius: var(--radius-full) !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 12px rgba(124,58,237,0.30);
    transition: var(--transition) !important;
}

.nav-cta:hover {
    box-shadow: 0 6px 20px rgba(124,58,237,0.45) !important;
    transform: translateY(-1px);
    background: none !important;
    background: linear-gradient(135deg, var(--purple-700), var(--fuchsia-500)) !important;
}

.nav-cta i { opacity: 1 !important; }

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    color: var(--gray-700);
    font-size: 20px;
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    background: var(--gray-100);
}

/* Mobile Nav */
.mobile-nav {
    display: none;
    background: white;
    border-top: 1px solid var(--gray-200);
    padding: 16px 24px;
    flex-direction: column;
    gap: 4px;
}

.mobile-nav.open {
    display: flex;
}

.mobile-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 500;
    color: var(--gray-700);
    transition: var(--transition);
}

.mobile-nav a:hover {
    background: var(--purple-50);
    color: var(--purple-600);
}

.mobile-nav a.active {
    background: var(--purple-50);
    color: var(--purple-600);
    font-weight: 600;
}

.mobile-nav .nav-cta {
    margin-top: 8px;
    background: linear-gradient(135deg, var(--purple-600), var(--fuchsia-500)) !important;
    color: white !important;
    justify-content: center;
    border-radius: var(--radius-full) !important;
}

/* ================================================
   HERO SECTION
   ================================================ */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--purple-900) 0%, var(--purple-700) 50%, var(--purple-800) 100%);
    color: white;
    padding: 100px 0 80px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 60% at 80% 20%, rgba(217,70,239,0.20) 0%, transparent 60%),
        radial-gradient(ellipse 50% 50% at 10% 80%, rgba(124,58,237,0.30) 0%, transparent 60%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--gray-50);
    clip-path: ellipse(55% 100% at 50% 100%);
}

.hero-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.20);
    backdrop-filter: blur(8px);
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 28px;
    letter-spacing: 0.02em;
}

.hero-badge i {
    color: #fbbf24;
}

.hero h1 {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
}

.hero h1 span {
    background: linear-gradient(135deg, #c084fc, #f0abfc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.80;
    margin-bottom: 40px;
    line-height: 1.7;
    font-weight: 300;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.hero-search {
    position: relative;
    max-width: 580px;
    margin: 0 auto;
}

.hero-search input {
    width: 100%;
    padding: 18px 24px 18px 52px;
    border-radius: var(--radius-full);
    border: none;
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--gray-800);
    background: white;
    box-shadow: 0 8px 32px rgba(0,0,0,0.20);
    outline: none;
    transition: var(--transition);
}

.hero-search input:focus {
    box-shadow: 0 8px 32px rgba(0,0,0,0.20), 0 0 0 3px rgba(192,132,252,0.40);
}

.hero-search input::placeholder {
    color: var(--gray-400);
}

.hero-search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--purple-500);
    font-size: 18px;
    pointer-events: none;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 48px;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
}

.hero-stat-num {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.03em;
}

.hero-stat-label {
    font-size: 12px;
    opacity: 0.65;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 2px;
}

/* ================================================
   SECTION COMMON
   ================================================ */
.section {
    padding: 88px 0;
}

.section-sm {
    padding: 64px 0;
}

.section-alt {
    background: white;
}

.section-purple {
    background: linear-gradient(135deg, var(--purple-900), var(--purple-700));
    color: white;
}

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

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--purple-600);
    background: var(--purple-50);
    border: 1px solid rgba(124,58,237,0.15);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 12px;
    letter-spacing: -0.03em;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--gray-500);
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.7;
    font-weight: 400;
}

/* ================================================
   TOOL CARDS
   ================================================ */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.tool-card {
    display: block;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--purple-500), var(--fuchsia-500));
    opacity: 0;
    transition: var(--transition);
}

.tool-card:hover {
    border-color: rgba(124,58,237,0.25);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

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

.tool-card-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: white;
    margin-bottom: 20px;
}

.tool-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 6px;
    font-family: var(--font-display);
}

.tool-card p {
    font-size: 13.5px;
    color: var(--gray-500);
    margin-bottom: 16px;
    line-height: 1.5;
}

.tool-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10.5px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.badge-hot    { background: #fee2e2; color: #dc2626; }
.badge-new    { background: #dcfce7; color: #16a34a; }
.badge-popular{ background: var(--purple-100); color: var(--purple-700); }

/* ================================================
   NEWS CARDS
   ================================================ */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.news-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.news-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: rgba(124,58,237,0.20);
}

.news-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-card-body {
    padding: 24px;
}

.news-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10.5px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 14px;
}

.tag-trending { background: #fee2e2; color: #dc2626; }
.tag-featured { background: #dcfce7; color: #16a34a; }
.tag-market   { background: #fef9c3; color: #ca8a04; }

.news-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
    line-height: 1.35;
}

.news-card p {
    font-size: 13.5px;
    color: var(--gray-500);
    line-height: 1.6;
    margin-bottom: 16px;
}

.news-read-more {
    font-size: 13px;
    font-weight: 600;
    color: var(--purple-600);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.news-read-more:hover {
    gap: 9px;
    color: var(--purple-700);
}

/* ================================================
   BLOG CARDS
   ================================================ */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.blog-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.blog-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: rgba(124,58,237,0.20);
}

.blog-card-thumb {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    opacity: 0.45;
    color: white;
}

.blog-card-body {
    padding: 24px;
}

.blog-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10.5px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 14px;
}

.tag-ai      { background: #dbeafe; color: #1d4ed8; }
.tag-student { background: #dcfce7; color: #15803d; }
.tag-seo     { background: var(--purple-100); color: var(--purple-700); }

.blog-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
    line-height: 1.35;
}

.blog-card p {
    font-size: 13.5px;
    color: var(--gray-500);
    line-height: 1.6;
    margin-bottom: 16px;
}

.blog-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--gray-400);
}

.blog-read-more {
    font-size: 13px;
    font-weight: 600;
    color: var(--purple-600);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.blog-read-more:hover {
    gap: 9px;
    color: var(--purple-700);
}

/* ================================================
   RESOURCES SECTION
   ================================================ */
.resources-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.resource-box {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 36px;
}

.resource-box-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.resource-box-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.resource-box h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
}

.resource-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.resource-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    transition: var(--transition);
    cursor: pointer;
}

.resource-item:hover {
    background: var(--gray-50);
    transform: translateX(4px);
}

.resource-item-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
    margin-top: 2px;
}

.resource-item a {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-800);
    display: block;
    margin-bottom: 2px;
    transition: var(--transition);
}

.resource-item:hover a {
    color: var(--purple-600);
}

.resource-item p {
    font-size: 12px;
    color: var(--gray-400);
    line-height: 1.4;
}

/* ================================================
   TUTORIALS SECTION
   ================================================ */
.tutorials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.tutorial-card {
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    color: white;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.tutorial-card::after {
    content: '';
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    transition: var(--transition);
}

.tutorial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.tutorial-card:hover::after {
    transform: scale(1.5);
}

.tutorial-icon {
    font-size: 42px;
    margin-bottom: 20px;
    display: block;
}

.tutorial-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.tutorial-card p {
    font-size: 13px;
    opacity: 0.85;
    line-height: 1.6;
    margin-bottom: 24px;
}

.tutorial-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.20);
    border: 1px solid rgba(255,255,255,0.30);
    color: white;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
    backdrop-filter: blur(4px);
}

.tutorial-btn:hover {
    background: rgba(255,255,255,0.30);
    gap: 10px;
}

/* ================================================
   CTA SECTION
   ================================================ */
.cta-section {
    background: linear-gradient(135deg, var(--purple-800), var(--purple-600));
    color: white;
    padding: 88px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 80% at 30% 50%, rgba(217,70,239,0.20) 0%, transparent 60%),
        radial-gradient(ellipse 40% 60% at 80% 50%, rgba(139,92,246,0.25) 0%, transparent 60%);
    pointer-events: none;
}

.cta-section-inner {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 800;
    margin-bottom: 14px;
    letter-spacing: -0.03em;
}

.cta-section p {
    font-size: 1.05rem;
    opacity: 0.80;
    margin-bottom: 36px;
}

/* ================================================
   BUTTONS
   ================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 15px;
    padding: 13px 28px;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--purple-600), var(--fuchsia-500));
    color: white;
    box-shadow: 0 4px 16px rgba(124,58,237,0.35);
}

.btn-primary:hover {
    box-shadow: 0 8px 24px rgba(124,58,237,0.50);
    transform: translateY(-2px);
}

.btn-white {
    background: white;
    color: var(--purple-700);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.btn-white:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    transform: translateY(-2px);
}

.btn-outline-white {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.40);
}

.btn-outline-white:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.70);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 16px;
}

/* ================================================
   FOOTER
   ================================================ */
.site-footer {
    background: var(--gray-950);
    color: var(--gray-300);
    padding: 72px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 56px;
    border-bottom: 1px solid var(--gray-800);
}

.footer-brand .logo-icon {
    width: 46px;
    height: 46px;
    margin-bottom: 16px;
}

.footer-brand .logo-name {
    color: white;
    font-size: 18px;
}

.footer-brand p {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.7;
    margin-top: 12px;
    max-width: 280px;
}

.footer-col h4 {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    color: var(--gray-300);
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col a {
    font-size: 14px;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.footer-col a i {
    font-size: 12px;
    opacity: 0.7;
    width: 16px;
}

.footer-col a:hover {
    color: var(--purple-400);
    transform: translateX(3px);
}

/* Social Icons */
.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 4px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--gray-800);
    border: 1px solid var(--gray-700);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--gray-400);
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--purple-600);
    border-color: var(--purple-600);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(124,58,237,0.40);
}

/* Footer Bottom */
.footer-bottom {
    padding: 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--gray-600);
}

.footer-bottom p a {
    color: var(--gray-500);
    transition: var(--transition);
}

.footer-bottom p a:hover {
    color: var(--purple-400);
}

.footer-bottom .heart {
    color: #f87171;
}

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

.footer-legal a {
    font-size: 13px;
    color: var(--gray-600);
    transition: var(--transition);
}

.footer-legal a:hover {
    color: var(--purple-400);
}

/* ================================================
   TOOL PAGE STYLES (for individual tools)
   ================================================ */
.tool-page {
    min-height: 100vh;
    padding: 40px 0;
    background: var(--gray-50);
}

.tool-container {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 24px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--purple-600);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 28px;
    transition: var(--transition);
}

.back-link:hover {
    gap: 12px;
    color: var(--purple-700);
}

.tool-header {
    text-align: center;
    margin-bottom: 40px;
}

.tool-header h1 {
    color: var(--gray-900);
    margin-bottom: 8px;
}

/* ================================================
   UTILITY CLASSES
   ================================================ */
.text-center { text-align: center; }
.text-purple { color: var(--purple-600); }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-8  { margin-bottom: 8px; }

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, var(--purple-600), var(--fuchsia-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Loading */
.loading {
    text-align: center;
    color: var(--purple-500);
    font-size: 1.1rem;
    padding: 48px;
    grid-column: 1 / -1;
}

/* ================================================
   ANIMATIONS
   ================================================ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.animate-fade-up {
    animation: fadeUp 0.55s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.delay-1 { animation-delay: 0.10s; }
.delay-2 { animation-delay: 0.20s; }
.delay-3 { animation-delay: 0.30s; }

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .main-nav { display: none; }
    .mobile-menu-btn { display: flex; }

    .hero {
        padding: 72px 0 64px;
    }

    .hero-stats {
        gap: 24px;
    }

    .hero-stat-num {
        font-size: 1.5rem;
    }

    .section, .cta-section {
        padding: 64px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .tools-grid,
    .news-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .resources-grid {
        grid-template-columns: 1fr;
    }

    .tutorials-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }

    .tutorials-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-search input {
        font-size: 15px;
        padding: 15px 20px 15px 46px;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .btn-lg {
        padding: 14px 28px;
        font-size: 15px;
    }
}

/* ================================================
   SCROLLBAR
   ================================================ */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--gray-100);
}
::-webkit-scrollbar-thumb {
    background: var(--purple-400);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--purple-600);
}

/* ================================================
   SELECTION
   ================================================ */
::selection {
    background: var(--purple-200);
    color: var(--purple-900);
}
