/*
Theme Name: Techmates Solutions
Theme URI: https://techmates-solutions.com/
Author: Techmates Team
Author URI: https://techmates-solutions.com/
Description: A high-performance, GSAP-powered WordPress theme for Techmates Solutions, featuring smooth scrolling and dynamic insights.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: techmates-theme
*/

/* --- CORE VARIABLES & THEME SETUP --- */
:root {
    --accent: #ff6041;
    --text-main: #141414;
    --bg-light: #ffffff;
    --bg-dark: #141414;
    --curve: cubic-bezier(0.33, 1, 0.68, 1);
}

/* --- LENIS SMOOTH SCROLLING --- */
html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

/* --- BASE STYLES --- */
body {
    background-color: var(--bg-light);
    color: var(--text-main);
    overflow-x: hidden;
    cursor: none; /* Custom cursor active */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background-color: var(--accent);
    color: white;
}

/* --- CUSTOM CURSOR --- */
#cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 16px;
    height: 16px;
    background-color: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background-color 0.3s;
}

#cursor.hovered {
    width: 64px;
    height: 64px;
    background-color: transparent;
    border: 2px solid var(--accent);
    mix-blend-mode: normal;
}

@media (hover: none) {
    #cursor { display: none; }
    body { cursor: auto; }
}

/* --- TYPOGRAPHY & REVEALS --- */
.reveal-text { 
    overflow: hidden; 
    display: block; 
}

.reveal-text span { 
    display: inline-block; 
    transform: translateY(100%); 
}

/* --- LAYOUT UTILITIES --- */
.grid-bg {
    background-image: linear-gradient(to right, rgba(0,0,0,0.05) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(0,0,0,0.05) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* --- COMPONENTS --- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    background-color: var(--accent);
    color: white;
    border-radius: 99px;
    font-weight: 500;
    transition: all 0.3s var(--curve);
    overflow: hidden;
    position: relative;
}

.btn-primary:hover { 
    transform: scale(1.05); 
    background-color: #000; 
}

/* --- WORDPRESS DYNAMIC BLOG CONTENT STYLING --- */
/* Ensures Gutenberg blocks look as nice as your static template */
.article-body h2 { 
    font-size: 2.5rem; 
    font-weight: 800; 
    margin-top: 5rem; 
    margin-bottom: 2rem; 
    letter-spacing: -0.03em; 
    color: #0a0a0a; 
    line-height: 1.1; 
}

.article-body p { 
    font-size: 1.25rem; 
    line-height: 1.8; 
    margin-bottom: 2.5rem; 
    color: #334155; 
    font-weight: 400; 
}

.article-body blockquote { 
    border-left: 4px solid var(--accent); 
    padding-left: 2.5rem; 
    font-size: 1.75rem; 
    margin: 5rem 0; 
    color: #0a0a0a; 
    font-weight: 600; 
    line-height: 1.4; 
}

.article-body img {
    border-radius: 40px;
    margin: 4rem 0;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

/* --- FAQ ACCORDION --- */
.faq-answer-wrapper {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.5s var(--curve);
}

.faq-item.active .faq-answer-wrapper {
    grid-template-rows: 1fr;
}

.faq-answer {
    overflow: hidden;
}

/* --- NAVIGATION ACCENTS --- */
.nav-link { position: relative; }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 1px;
    background-color: var(--accent);
    transition: width 0.3s var(--curve);
}
.nav-link:hover::after { width: 100%; }

/* --- READING PROGRESS BAR --- */
.progress-bar { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 0%; 
    height: 4px; 
    background: var(--accent); 
    z-index: 1001; 
}

/* Dynamic Content Block Spacing & Alignment */
.article-body h2 { font-size: 2.5rem; font-weight: 800; margin-top: 5rem; margin-bottom: 2rem; color: #0a0a0a; line-height: 1.1; }
.article-body p { font-size: 1.25rem; line-height: 1.8; margin-bottom: 2.5rem; color: #334155; }
.article-body img { border-radius: 40px; margin: 4rem 0; width: 100%; height: auto; display: block; box-shadow: 0 20px 50px rgba(0,0,0,0.1); }
.article-body video, .article-body iframe { border-radius: 40px; margin: 4rem 0; width: 100%; aspect-ratio: 16/9; }
.article-body blockquote { border-left: 4px solid var(--accent); padding-left: 2.5rem; font-size: 1.75rem; margin: 5rem 0; color: #0a0a0a; font-weight: 600; font-style: italic; }

/* Table of Contents JS Support */
.toc-link { display: block; transition: all 0.3s var(--curve); border-left: 2px solid transparent; padding-left: 1rem; color: #64748b; text-decoration: none; }
.toc-link:hover, .toc-link.active { border-left-color: var(--accent); color: var(--accent); transform: translateX(5px); }