/* --- BACKGROUND EFFECTS --- */
/* Hero Section - Adapts to Theme */
.hero-section { 
    position: relative;
    background: linear-gradient(to bottom, var(--bg-body) 0%, var(--bg-surface) 100%); 
    padding: 80px 0 60px; 
    text-align: center; 
    overflow: hidden;
    transition: background 0.3s ease;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        linear-gradient(var(--border-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.3; 
    mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}

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

.hero-title { 
    font-size: 3.5rem; 
    line-height: 1.1; 
    margin: 0 0 20px; 
    letter-spacing: -0.04em; 
    color: var(--text-main); 
    font-weight: 800;
}

.text-gradient { 
    background: linear-gradient(135deg, var(--primary) 0%, #a855f7 100%); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
    filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.2));
}

/* --- MOBILE ADJUSTMENTS --- */
@media (max-width: 768px) {
    .hero-section { 
        padding: 40px 0 20px; /* Reduced padding for mobile */
    }
    .hero-title { 
        font-size: 2.5rem; 
    }
    .text-gradient {
        font-size: 2.3rem; /* Specific size for mobile */
        display: block;    /* Ensures it sits on its own line if needed */
    }
}

.hero-subtitle { 
    font-size: 1.25rem; 
    color: var(--text-muted); 
    max-width: 550px; 
    margin: 0 auto 40px; 
    line-height: 1.6;
}

/* --- HERO SEARCH --- */
.hero-search { 
    max-width: 600px; 
    margin: 0 auto; 
    position: relative; 
    display: flex; 
    box-shadow: 0 0 0 4px var(--shadow-color); 
    border-radius: 50px;
    transition: box-shadow 0.3s ease;
    background: var(--bg-surface);
}

.hero-search:focus-within {
    box-shadow: 0 0 0 4px var(--primary); 
    opacity: 0.9;
}

.search-input { 
    width: 100%; 
    padding: 18px 70px 18px 30px; 
    border-radius: 50px; 
    border: 1px solid var(--border-color); 
    background: transparent;
    color: var(--text-main);
    font-size: 1.1rem; 
    outline: none; 
    transition: border-color 0.2s;
}

.search-input:focus { border-color: var(--primary); }

.search-btn { 
    position: absolute; right: 10px; top: 6px; 
    height: 46px; width: 46px; 
    background: var(--primary); 
    color: white; 
    border: none; border-radius: 50%; cursor: pointer; 
    transition: all 0.2s ease;
    display: flex; align-items: center; justify-content: center; padding: 0;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}
.search-btn:hover { transform: scale(1.05); background: var(--primary-hover); }

.hero-tags { margin-top: 20px; font-size: 0.9rem; color: var(--text-muted); }
.hero-tags a { color: var(--text-light); transition: color 0.2s; text-decoration: none; border-bottom: 1px dotted var(--border-color); }
.hero-tags a:hover { color: var(--primary); border-bottom-color: var(--primary); }

/* --- BROWSE CATEGORIES --- */
.section-categories { 
    padding: 80px 0; 
    background: var(--bg-surface); 
    transition: background 0.3s ease;
}

.section-header-center { text-align: center; margin-bottom: 50px; }
.section-header-center h2 { 
    font-size: 2rem; 
    color: var(--text-main); 
    margin: 0 0 10px; 
    letter-spacing: -0.02em; 
}

.category-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); 
    gap: 24px; 
}

.category-card { 
    display: flex; align-items: center; 
    background: var(--bg-subtle); 
    padding: 24px; 
    border: 1px solid var(--border-color); 
    border-radius: 16px; 
    transition: all 0.3s ease; 
    position: relative;
    overflow: hidden;
}

.category-card:hover { 
    transform: translateY(-4px); 
    border-color: var(--primary); 
    background: var(--bg-body);
    box-shadow: 0 10px 30px -10px var(--shadow-color);
}

.category-card::after {
    content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at top right, var(--primary) 0%, transparent 70%);
    opacity: 0; transition: opacity 0.3s; pointer-events: none;
    mix-blend-mode: overlay;
}
.category-card:hover::after { opacity: 0.1; }

.cat-icon { 
    width: 50px; height: 50px; 
    background: var(--bg-surface); 
    color: var(--primary); 
    border-radius: 12px; 
    display: flex; align-items: center; justify-content: center; 
    font-weight: 800; font-size: 1.4rem; margin-right: 18px; 
    border: 1px solid var(--border-color);
}

.cat-info h3 { margin: 0; font-size: 1.05rem; color: var(--text-main); font-weight: 600; }
.cat-info span { font-size: 0.85rem; color: var(--text-muted); display: block; margin-top: 2px; }

/* --- INFO SECTION (Seamless Blend) --- */
.pe-info-section {
    background: transparent;
    padding: 120px 0 60px;
    position: relative;
    border: none;
}

.pe-info-section::after {
    content: "";
    position: absolute;
    top: 0; left: 10%; right: 10%; 
    height: 1px;
    background: radial-gradient(circle, var(--border-color) 0%, transparent 100%);
    opacity: 0.5;
}

.pe-info-section::before {
    content: "";
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 80%; height: 80%; 
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    filter: blur(100px); 
    z-index: -1;
    pointer-events: none;
    opacity: 0.08; 
}

.pe-info-box { 
    max-width: 800px; 
    margin: 0 auto; 
    text-align: center; 
    position: relative; 
    z-index: 2;
}

.pe-info-box h2 { 
    font-size: 2.5rem; 
    margin-bottom: 24px; 
    color: var(--text-main); 
    letter-spacing: -0.03em;
}

.pe-info-box p { 
    font-size: 1.25rem; 
    color: var(--text-muted); 
    line-height: 1.8; 
    font-weight: 400;
}

.pe-info-box strong { 
    color: var(--text-main); 
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.pe-info-box strong::after {
    content: ""; position: absolute; bottom: 0px; left: 0; width: 100%; height: 8px;
    background: var(--primary);
    z-index: -1;
    transform: skewX(-10deg);
    opacity: 0.2;
}