/*
Theme Name: Sanviraj - Grand Architect v5
Theme URI: https://sanviraj.com
Author: Sanviraj
Author URI: https://editians.com
Description: Detailed, engaging, and authoritative. Features automatic carousels, animated counters, and rich background depth.
Version: 5.0.0
Text Domain: sanviraj-theme
*/

/* --- Design System --- */
:root {
    --bg-deep: #050505;
    --bg-alt: #0a0a0a;
    --bg-card: rgba(255, 255, 255, 0.03);
    --border-card: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --accent-creative: #26e78a;
    --accent-tech: #00d2ff;
    --font-main: 'Inter', sans-serif;
    --font-display: 'Outfit', sans-serif;
    --transition-smooth: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Base & Safari --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
@media (pointer: fine) { * { cursor: none !important; } }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background-color: var(--bg-deep); color: var(--text-primary); font-family: var(--font-main); line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }

/* Atmosphere */
body::after {
    content: ''; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PScwIDAgMjAwIDIwMCcgeG1sbnM9J2h0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnJz48ZmlsdGVyIGlkPSdub2lzZSc+PGZlVHVyYnVsZW5jZSB0eXBlPSdmcmFjdGFsTm9pc2UnIGJhc2VGcmVxdWVuY3k9JzAuNjUnIG51bU9jdGF2ZXM9JzMnIHN0aWNoVGlsZXM9J3N0aWNoJy8+PC9maWx0ZXI+PHJlY3Qgd2lkdGg9JzEwMCUnIGhlaWdodD0nMTAwJScgZmlsdGVyPSd1cmwoI25vaXNlKScvPjwvc3ZnPg==');
    opacity: 0.03; pointer-events: none; z-index: 9999;
}

#custom-cursor {
    position: fixed; width: 20px; height: 20px; background: #fff; border-radius: 50%; pointer-events: none; z-index: 10000; mix-blend-mode: difference;
    transition: width 0.3s, height 0.3s, transform 0.1s; transform: translate(-50%, -50%); display: none;
}
@media (pointer: fine) { #custom-cursor { display: block; } }
#custom-cursor.hover { width: 80px; height: 80px; background: var(--accent-creative); mix-blend-mode: normal; opacity: 0.2; }

/* --- Layout --- */
.container { max-width: 1400px; margin: 0 auto; padding: 0 5%; }
.section-padding { padding: 12rem 0; }
.bg-alt { background-color: var(--bg-alt); }

/* --- Typography --- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; letter-spacing: -0.04em; }
.text-gradient { background: linear-gradient(135deg, var(--accent-creative) 0%, var(--accent-tech) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* --- Components --- */
.glass-card {
    background: var(--bg-card); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    border: 1px solid var(--border-card); border-radius: 3rem; padding: 4rem; transition: var(--transition-smooth);
}
.glass-card:hover { border-color: rgba(255, 255, 255, 0.2); transform: translateY(-15px); background: rgba(255, 255, 255, 0.06); }

.btn-premium {
    display: inline-flex; align-items: center; gap: 1rem; padding: 1.4rem 3.5rem; background: #ffffff; color: #000000;
    text-decoration: none; font-weight: 900; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.2em; border-radius: 2rem; transition: var(--transition-smooth);
}
.btn-premium:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(255,255,255,0.15); }

/* --- Carousel --- */
.reviews-carousel { position: relative; max-width: 900px; margin: 0 auto; height: 400px; }
.carousel-slide {
    position: absolute; top: 0; left: 0; width: 100%; opacity: 1; visibility: visible;
    transition: opacity 1s ease, transform 1s ease; transform: translateY(0);
}
.carousel-slide.active { opacity: 1; visibility: visible; transform: translateY(0); }

/* --- Utility Classes (Tailwind-like mapping) --- */
.bg-creative\/5 { background: rgba(38, 231, 138, 0.05); }
.bg-tech\/10 { background: rgba(0, 210, 255, 0.1); }
.border-creative\/30 { border: 1px solid rgba(38, 231, 138, 0.3); }
.border-creative\/20 { border: 1px solid rgba(38, 231, 138, 0.2); }
.border-tech\/20 { border: 1px solid rgba(0, 210, 255, 0.2); }
.text-creative { color: var(--accent-creative); }
.text-tech { color: var(--accent-tech); }
.glass { background: var(--bg-card); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border: 1px solid var(--border-card); }
.rounded-\[2\.5rem\] { border-radius: 2.5rem; }
.rounded-\[3rem\] { border-radius: 3rem; }
.rounded-\[4rem\] { border-radius: 4rem; }

/* --- Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Counters --- */
.counter-value { font-size: clamp(3rem, 8vw, 6rem); font-family: var(--font-display); font-weight: 900; line-height: 1; margin-bottom: 0.5rem; }

/* --- Floating Icons --- */
.floating-icon { position: absolute; opacity: 0.1; filter: grayscale(1); animation: float 10s infinite alternate ease-in-out; }
@keyframes float { 0% { transform: translate(0, 0) rotate(0deg); } 100% { transform: translate(30px, 30px) rotate(15deg); } }

/* --- Responsive --- */
@media (max-width: 1024px) {
    .section-padding { padding: 8rem 0; }
    .glass-card { padding: 2.5rem; border-radius: 2rem; }
}
@media (max-width: 768px) {
    .hero-grid { text-align: center; }
    .hero-text h1 { font-size: 3.5rem; }
}
