/*
Theme Name: Bijlani Theme
Theme URI: https://bijlani.in
Author: Bijlani.in
Author URI: https://bijlani.in
Description: Strategic Counsel for Complex Litigation - A premium law firm WordPress theme with GSAP animations, mega menu, and e-commerce for legal resources.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bijlani-theme
Tags: dark-mode, legal, law-firm, custom-menu, featured-images, custom-logo

Bijlani.in - Strategic Counsel for Complex Litigation
*/

/* ========================================
   CSS Variables (Design Tokens)
======================================== */
:root {
    /* Colors */
    --primary: #C5A065;
    --primary-dark: #B08D55;
    --background-light: #FFFFFF;
    --background-dark: #050505;
    --surface-light: #F3F4F6;
    --surface-dark: #121212;
    --text-main-light: #111827;
    --text-main-dark: #F3F4F6;
    --text-muted-light: #4B5563;
    --text-muted-dark: #9CA3AF;
    --border-light: #E5E7EB;
    --border-dark: #27272a;

    /* Typography */
    --font-display: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --font-signature: 'Great Vibes', cursive;

    /* Shadows */
    --shadow-gold: 0 4px 20px -2px rgba(197, 160, 101, 0.2);
    --shadow-gold-glow: 0 0 25px -5px rgba(197, 160, 101, 0.3);
}

/* ========================================
   Base Styles
======================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--background-dark);
    color: var(--text-main-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

body.light-mode {
    background-color: var(--background-light);
    color: var(--text-main-light);
}

/* Noise texture for backgrounds */
.bg-noise {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* ========================================
   Custom Scrollbar
======================================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--border-dark);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ========================================
   Custom Cursor (Stitch Design)
======================================== */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 99999;
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(197, 160, 101, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cursor-bowtie {
    width: 20px;
    height: 10px;
    background-color: transparent;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cursor-bowtie::before,
.cursor-bowtie::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
}

.cursor-bowtie::before {
    border-left: 8px solid rgba(197, 160, 101, 0.3);
    left: 0;
}

.cursor-bowtie::after {
    border-right: 8px solid rgba(197, 160, 101, 0.3);
    right: 0;
}

.cursor-bowtie span {
    width: 4px;
    height: 4px;
    background-color: rgba(197, 160, 101, 0.6);
    border-radius: 1px;
    z-index: 10;
}

/* ========================================
   Typography
======================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    /* Responsive H1 */
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 1.75rem);
}

h4 {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
}

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

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

/* ========================================
   Utility Classes
======================================== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

.gold-gradient-text {
    background: linear-gradient(to right, #C5A065, #E5C585, #C5A065);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: shine 5s linear infinite;
}

.text-primary {
    color: var(--primary);
}

.text-muted {
    color: var(--text-muted-dark);
}

.bg-primary {
    background-color: var(--primary);
}

.bg-surface {
    background-color: var(--surface-dark);
}

/* ========================================
   Animations
======================================== */
@keyframes shine {
    to {
        background-position: 200% center;
    }
}

@keyframes revolve {
    0% {
        transform: rotateY(0deg);
    }

    100% {
        transform: rotateY(360deg);
    }
}

@keyframes wobble-3d {

    0%,
    100% {
        transform: rotateY(-10deg) rotateX(3deg);
    }

    50% {
        transform: rotateY(10deg) rotateX(-3deg);
    }
}

@keyframes scroll-infinite {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 15px rgba(197, 160, 101, 0.3);
    }

    50% {
        box-shadow: 0 0 30px rgba(197, 160, 101, 0.6);
    }
}

@media (min-width: 768px) {
    .animate-revolve {
        animation: revolve 6s linear infinite;
        transform-style: preserve-3d;
    }

    .animate-wobble {
        animation: wobble-3d 3s ease-in-out infinite;
        transform-style: preserve-3d;
    }
}

/* Hover lift effect */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-gold);
}

/* ========================================
   Buttons
======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(to right, #C5A065, #FFD700, #C5A065);
    background-size: 200% 200%;
    color: #000;
    animation: shine 5s linear infinite;
}

.btn-primary:hover {
    background: linear-gradient(to right, #FFFFFF, #F3F4F6);
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(197, 160, 101, 0.7);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-dark);
    color: var(--text-main-dark);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
    color: var(--primary);
}

/* ========================================
   Cards
======================================== */
.card {
    background: var(--surface-dark);
    border: 1px solid var(--border-dark);
    border-radius: 0.5rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-gold);
}

/* ========================================
   Forms
======================================== */
input,
textarea,
select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-dark);
    border-radius: 0.25rem;
    color: var(--text-main-dark);
    font-family: var(--font-body);
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(197, 160, 101, 0.2);
}

label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-muted-dark);
}

/* ========================================
   Custom Cursor (Advocate Bow)
======================================== */
/* ========================================
   Custom Cursor (Advocate Bow)
======================================== */
.cursor-bow {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: exclusion;
    /* Optional: makes it visible on dark/light backgrounds */
    transform: translate(-50%, -50%);
}

.cursor-bow img {
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
}

/* Hide custom cursor on touch devices */
@media (hover: none) and (pointer: coarse) {

    .cursor-dot,
    .cursor-outline {
        display: none !important;
    }
}

/* ========================================
   Video Modal
======================================== */
.video-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.video-modal-content {
    width: 90%;
    max-width: 900px;
    aspect-ratio: 16/9;
    transform: scale(0.9);
    transition: transform 0.4s ease;
}

.video-modal-overlay.active .video-modal-content {
    transform: scale(1);
}

.video-modal-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-modal-close:hover {
    background: var(--primary);
    color: black;
}

/* ========================================
   Responsive Grid
======================================== */
.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 640px) {
    .sm\:grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .lg\:grid-cols-4 {
        grid-template-columns: repeat(4, 1fr);
    }

    .lg\:grid-cols-5 {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* ========================================
   Hide Scrollbar Utility
======================================== */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ========================================
   Perspective Container (for 3D effects)
======================================== */
.perspective-container {
    perspective: 1200px;
}

/* ========================================
   Price Badge (INR)
======================================== */
.price-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--primary), #B08D55);
    color: #000;
    font-weight: 700;
    font-size: 1.125rem;
    border-radius: 0.25rem;
}

.price-badge::before {
    content: '₹';
    font-weight: 400;
}

.price-free {
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
}

.price-free::before {
    content: '';
}