/* 
    Yashna Digital | Professional Digital Agency
    - Performance-Driven Design System
    - Professional Typography (Inter + Playfair Display)
    - Clean Tech Aesthetics
*/

:root {
    --primary-blue: #00A3FF;
    --accent-cyan: #00F0FF;
    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition-speed: 0.5s;
    --logo-gradient: linear-gradient(135deg, #00A3FF 0%, #00F0FF 100%);
}

body {
    background-color: #050505;
    color: white;
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    cursor: none; /* Custom cursor enabled */
}

/* --- Custom Cursor --- */
#cursor {
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 999999;
    mix-blend-mode: difference;
    transition: transform 0.1s ease-out;
}

#cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    position: fixed;
    top: -10px;
    left: -10px;
    pointer-events: none;
    z-index: 999998;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s;
}

.cursor-hover #cursor { transform: scale(3); }
.cursor-hover #cursor-follower { transform: scale(1.5); border-color: transparent; background: rgba(255,255,255,0.1); }

/* --- Editorial Typography --- */
.font-editorial {
    font-family: 'Playfair Display', serif;
    font-style: italic;
}

h1, h2, h3 {
    letter-spacing: -0.04em;
    line-height: 0.95;
}

/* --- Midnight Page Transition Curtain --- */
#transition-curtain {
    position: fixed;
    inset: 0;
    background: black;
    z-index: 99999;
    pointer-events: none;
    display: none;
    opacity: 0;
    background: radial-gradient(circle at center, #1a1a1a 0%, #000 100%);
}

.curtain-active #transition-curtain {
    display: block;
}

/* --- Premium Digital Logo --- */
.agency-logo {
    display: flex;
    align-items: center;
    gap: 8px; /* Reduced gap from 12px */
}

.logo-icon {
    width: 32px;
    height: 32px;
    position: relative;
    background: var(--logo-gradient);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(-15deg);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo-icon::after {
    content: '';
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 2px;
    animation: digital-pulse 2s infinite;
}

@keyframes digital-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
}

.agency-logo:hover .logo-icon {
    transform: rotate(0deg) scale(1.1);
}

.logo-text {
    font-size: 1.25rem; /* Slightly smaller for better fit */
    font-weight: 800;
    letter-spacing: -0.04em;
    color: white;
    white-space: nowrap;
}

/* --- Flagship Glass Components --- */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid var(--glass-border);
    box-shadow: 
        0 10px 30px rgba(0,0,0,0.5),
        inset 0 1px 1px rgba(255,255,255,0.05);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--primary-blue);
    transform: translateY(-5px);
}

/* --- Service Pillars --- */
.service-pillar {
    position: relative;
    overflow: hidden;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.pillar-visual {
    height: 200px; /* Reduced from 300px */
    background: rgba(255,255,255,0.03);
    border-radius: 2rem;
    margin-bottom: 1rem; /* Reduced from 2.5rem */
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-pillar:hover .pillar-visual {
    background: rgba(255,255,255,0.05);
}

/* Category Specifics */
.pillar-digital:hover { border-color: #00A3FF; box-shadow: 0 0 50px rgba(0, 163, 255, 0.1); }
.pillar-security:hover { border-color: #FF4D4D; box-shadow: 0 0 50px rgba(255, 77, 77, 0.1); }

/* Pillar Icon Pulse */
.pillar-icon-glow {
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--primary-blue) 0%, transparent 70%);
    opacity: 0.1;
    filter: blur(40px);
    transition: all 0.5s;
}

.service-pillar:hover .pillar-icon-glow {
    opacity: 0.2;
    transform: scale(1.5);
}

/* --- Pillar Digital Art --- */
.pillar-art {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.1;
    transition: opacity 0.5s;
}

.service-pillar:hover .pillar-art {
    opacity: 0.2;
}

.art-grid {
    background-image: radial-gradient(rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    height: 100%;
    width: 100%;
}

.art-scan {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-blue), transparent);
    animation: auto-scan 4s linear infinite;
}

@keyframes auto-scan {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(300px); }
}

/* Responsive Stacking */
@media (max-width: 1024px) {
    #services .grid-cols-2 {
        grid-template-columns: 1fr;
    }
}

/* Sharp Portfolio Finish */
.portfolio-img-container {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    background: #111;
}

.portfolio-img-container img {
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-img-container:hover img {
    transform: scale(1.1);
}

/* --- Scroll Progress --- */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--primary-blue);
    z-index: 10000;
    width: 0%;
}

/* --- FAQ Accordion --- */
.faq-item {
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.faq-trigger {
    width: 100%;
    padding: 0.75rem 0; /* Reduced from 2rem */
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    transition: opacity 0.3s;
}

.faq-trigger:hover {
    opacity: 0.7;
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1), padding 0.5s;
    color: rgba(255,255,255,0.5);
    font-size: 0.95rem;
    line-height: 1.6;
}

.faq-item.active .faq-content {
    max-height: 200px;
    padding-bottom: 0.75rem; /* Reduced from 2rem */
}

/* --- Utility Typography --- */
.text-balance { text-wrap: balance; }
.tracking-tightest { letter-spacing: -0.05em; }

@keyframes shine-global {
    0% { background-position: 200% center; }
    100% { background-position: -200% center; }
}
