/* ==========================================================================
   POWERONROAD.IN: ADVANCED TECH-AUTO UI
   Theme: High-Vis Amber & Deep Onyx
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    /* Advanced Color Palette */
    --color-amber: #F59E0B; 
    --color-amber-dark: #D97706;
    --color-onyx: #09090B; 
    --color-zinc: #F4F4F5; 
    --color-white: #FFFFFF;
    
    /* Typography */
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    
    /* UI Variables */
    --shadow-sm: 0 4px 6px -1px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0,0,0,0.25);
    --shadow-glow: 0 0 20px rgba(245, 158, 11, 0.4);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- RESET & BASE --- */
html, body { scroll-behavior: smooth; overflow-x: hidden; }
body { 
    font-family: var(--font-body); 
    color: #3F3F46; 
    background-color: var(--color-white); 
    padding-top: 80px; 
    -webkit-font-smoothing: antialiased; 
    text-rendering: optimizeLegibility; 
}
body.mobile-nav-active { overflow: hidden; }

/* Typographic Utility Classes */
h1, h2, h3, h4, h5, h6, .font-heading { font-family: var(--font-heading); }
.fw-black { font-weight: 900; }
.tracking-tight { letter-spacing: -0.05em; }
.tracking-wide { letter-spacing: 0.1em; }
.text-amber { color: var(--color-amber) !important; }
.bg-amber { background-color: var(--color-amber) !important; }
.text-onyx { color: var(--color-onyx) !important; }
.bg-onyx { background-color: var(--color-onyx) !important; }
.bg-zinc { background-color: var(--color-zinc) !important; }
.py-6 { padding-top: 6rem; padding-bottom: 6rem; }

/* --- HEADER & NAVIGATION --- */
.premium-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
}
.premium-header.scrolled { 
    box-shadow: var(--shadow-md); 
    padding-top: 0.5rem; 
    padding-bottom: 0.5rem; 
}

/* STANDARDIZED LOGO SIZING */
.brand-logo {
    height: 45px;          /* Strict standard height */
    width: auto;           /* Maintains aspect ratio */
    object-fit: contain;   /* Prevents stretching */
    transition: var(--transition);
}
.logo-hover:hover .brand-logo {
    transform: scale(1.05);
}

/* Fallback Logo Icon */
.brand-icon-box {
    width: 36px; height: 36px;
    background: var(--color-amber);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.logo-hover:hover .brand-icon-box { 
    transform: rotate(15deg) scale(1.1); 
    box-shadow: var(--shadow-glow); 
}

/* Custom Highlighted Link */
.nav-highlight {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--color-amber) !important;
    padding: 0.5rem 1rem !important;
    border-radius: 50px;
    border: 1px solid rgba(245, 158, 11, 0.2);
    transition: var(--transition);
}
.nav-highlight:hover {
    background-color: var(--color-amber);
    color: var(--color-white) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}
.nav-highlight:hover .pulse-icon { color: var(--color-white) !important; }

/* Animated Underline for Nav Links */
.link-hover { position: relative; }
.link-hover::after { 
    content: ''; position: absolute; bottom: 0; left: 0; 
    width: 0; height: 2px; background: var(--color-amber); transition: 0.3s; 
}
.link-hover:hover::after { width: 100%; }

/* --- ANIMATIONS & KEYFRAMES --- */
@keyframes pulse-opacity { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.pulse-icon { animation: pulse-opacity 2s infinite; }

@keyframes radar-pulse {
    0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(245, 158, 11, 0); }
    100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}
.radar-pulse-btn { animation: radar-pulse 2s infinite; }

@keyframes float-glow-whatsapp {
    0%, 100% { transform: translateY(0); box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4), 0 0 15px rgba(37, 211, 102, 0.6); }
    50% { transform: translateY(-8px); box-shadow: 0 15px 30px rgba(37, 211, 102, 0.3), 0 0 25px rgba(37, 211, 102, 0.8); }
}
.glowing-whatsapp { animation: float-glow-whatsapp 3s ease-in-out infinite; }

@keyframes float-glow-call {
    0%, 100% { transform: translateY(0); box-shadow: 0 10px 25px rgba(245, 158, 11, 0.4), 0 0 15px rgba(245, 158, 11, 0.6); }
    50% { transform: translateY(-8px); box-shadow: 0 15px 30px rgba(245, 158, 11, 0.3), 0 0 25px rgba(245, 158, 11, 0.8); }
}
.glowing-call { animation: float-glow-call 3.5s ease-in-out infinite; }

/* Krrish Web Solutions Shimmer Effect */
@keyframes shimmer { 100% { transform: translateX(100%); } }
.shimmer-bg { position: relative; overflow: hidden; }
.shimmer-bg::after { 
    content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%; 
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.4), transparent); 
    transform: skewX(-20deg); animation: shimmer 3s infinite; 
}
.shimmer-sweep { 
    position: absolute; top: 0; left: -100%; width: 50%; height: 100%; 
    background: linear-gradient(to right, transparent, rgba(245,158,11,0.15), transparent); 
    transform: skewX(-20deg); animation: shimmer 4s infinite; z-index: 1; pointer-events: none; 
}
.krrish-credit .hover-underline-tech { 
    position: absolute; bottom: -2px; left: 0; width: 100%; height: 2px; 
    background: var(--color-amber); transform: scaleX(0); transform-origin: right; transition: transform 0.4s ease; 
}
.krrish-link:hover .hover-underline-tech { transform: scaleX(1); transform-origin: left; }
.krrish-link:hover { color: var(--color-amber) !important; text-shadow: 0 0 10px rgba(245,158,11,0.5); }

/* --- MICRO-INTERACTIONS --- */
.hover-lift { transition: var(--transition); }
.hover-lift:hover { transform: translateY(-8px); box-shadow: var(--shadow-2xl) !important; }
.hover-lift-subtle { transition: var(--transition); }
.hover-lift-subtle:hover { transform: translateY(-4px); }

.img-zoom { transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.service-card-pro:hover .img-zoom { transform: scale(1.08); }

/* Group Hovers for Steps */
.group:hover .group-hover-spin { transform: rotate(180deg); transition: 0.5s; }
.group:hover .group-hover-shake { animation: fa-shake 1s ease infinite; }
.group:hover .group-hover-drive { transform: translateX(10px); transition: 0.3s; }
.group:hover .step-bg-glow { opacity: 1; }
.step-bg-glow { 
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); 
    width: 150px; height: 150px; background: radial-gradient(circle, rgba(245,158,11,0.15) 0%, rgba(245,158,11,0) 70%); 
    opacity: 0; transition: var(--transition); pointer-events: none; z-index: 0; 
}

.spin-hover { transition: 0.5s; }
.stats-pill:hover .spin-hover, .fa-spin-hover:hover { transform: rotate(360deg); }
.bounce-hover { transition: 0.3s; }
.stats-pill:hover .bounce-hover, .service-card-pro:hover .bounce-hover { transform: translateY(-3px); }

/* --- BUTTONS --- */
.btn { font-family: var(--font-heading); transition: var(--transition); border: none; position: relative; overflow: hidden; z-index: 1; }
.btn::before { 
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; 
    background: rgba(255,255,255,0.15); transition: var(--transition); z-index: -1; transform: skewX(-15deg); 
}
.btn:hover::before { left: 100%; }

.btn-amber-solid { background-color: var(--color-amber); color: var(--color-onyx); }
.btn-amber-solid:hover { background-color: var(--color-amber-dark); transform: translateY(-3px); box-shadow: var(--shadow-glow); color: var(--color-onyx); }
.btn-outline-onyx { background-color: transparent; border: 2px solid var(--color-onyx); color: var(--color-onyx); }
.btn-outline-onyx:hover { background-color: var(--color-onyx); color: var(--color-white); }
.btn-onyx-solid { background-color: var(--color-onyx); color: var(--color-white); }
.btn-onyx-solid:hover { background-color: #27272A; color: var(--color-amber); transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0,0,0,0.3); }
.btn-glass { background: rgba(255,255,255,0.1); backdrop-filter: blur(4px); border: 1px solid rgba(255,255,255,0.3); }
.btn-glass:hover { background: rgba(255,255,255,0.25); }

.btn-icon-slide i { transition: 0.3s; }
.btn-icon-slide:hover i { transform: translateX(5px); }
.slide-right-hover { transition: 0.3s; }
.btn:hover .slide-right-hover { transform: translateX(5px); }

/* --- HERO MOBILE FIXES --- */
.hero-premium { 
    background-color: var(--color-onyx); 
    position: relative; 
    /* Force mobile browsers to render backgrounds correctly without over-zooming */
    background-attachment: scroll !important; 
    -webkit-background-size: cover !important;
    -moz-background-size: cover !important;
    -o-background-size: cover !important;
    background-size: cover !important;
}
.hero-glass-card { 
    background: rgba(255, 255, 255, 0.05); 
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); 
    border: 1px solid rgba(255, 255, 255, 0.1); 
}

/* --- COMPONENTS --- */
.stats-pill { border: 1px solid rgba(0,0,0,0.05); }
.icon-circle { width: 45px; height: 45px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }

.service-card-pro { transition: var(--transition); border: 1px solid transparent !important; }
.service-card-pro:hover { border-color: rgba(245,158,11,0.3) !important; }
.card-title-hover { transition: var(--transition); }
.service-card-pro:hover .card-title-hover { color: var(--color-amber) !important; }

.pattern-grid { 
    background-color: var(--color-white); 
    background-image: linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px); 
    background-size: 30px 30px; 
}

.review-box { transition: var(--transition); }
.avatar-circle { width: 45px; height: 45px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }

.premium-accordion .accordion-button:not(.collapsed) { background-color: transparent; color: var(--color-amber); box-shadow: none; }
.premium-accordion .accordion-button:focus { box-shadow: none; }
.premium-accordion .accordion-button::after { filter: grayscale(1); }

/* --- FORMS --- */
.custom-input { transition: var(--transition); border: 1px solid transparent !important; }
.custom-input:focus { border-color: var(--color-amber) !important; box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15) !important; background-color: var(--color-white) !important; transform: translateY(-2px); }
.custom-input-grp:focus { box-shadow: none !important; background-color: var(--color-white) !important; }
.input-group:focus-within { box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15) !important; transform: translateY(-2px); transition: 0.3s; }

/* --- FLOATING DOCK --- */
.floating-dock { position: fixed; bottom: 25px; left: 0; width: 100%; padding: 0 30px; display: flex; justify-content: space-between; z-index: 1040; pointer-events: none; }
.dock-btn { width: 65px; height: 65px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; color: white; border: none; pointer-events: auto; transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.btn-whatsapp { background: #25D366; }
.btn-call { background: var(--color-onyx); border: 2px solid var(--color-amber); color: var(--color-amber); }
.dock-btn:hover { transform: scale(1.15) rotate(-5deg); color: white; }

/* --- CUSTOM MODERN SCROLLBAR --- */
::-webkit-scrollbar { width: 8px; background: var(--color-zinc); }
::-webkit-scrollbar-track { background: rgba(9, 9, 11, 0.05); border-radius: 10px; }
::-webkit-scrollbar-thumb { background: linear-gradient(to bottom, var(--color-amber), var(--color-amber-dark)); border-radius: 10px; border: 2px solid var(--color-zinc); }
::-webkit-scrollbar-thumb:hover { background: var(--color-onyx); }

/* --- SCROLL TO TOP BUTTON --- */
.scroll-top-btn {
    position: fixed;
    bottom: 105px; /* Above the dock */
    right: 25px;
    width: 45px;
    height: 45px;
    background: var(--color-onyx);
    color: var(--color-amber);
    border: 2px solid var(--color-amber);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 1030;
    opacity: 0;
    visibility: hidden;
    transform: translateY(30px) scale(0.5);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.scroll-top-btn.show { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.scroll-top-btn:hover { background: var(--color-amber); color: var(--color-onyx); transform: translateY(-5px) scale(1.1); box-shadow: 0 10px 25px rgba(245, 158, 11, 0.5); }
.scroll-top-btn i { transition: transform 0.3s ease; }
.scroll-top-btn:hover i { transform: translateY(-3px); }

/* --- SCROLL REVEAL CLASSES (Triggered by JS) --- */
.slide-up-text { opacity: 0; animation: slideUp 0.8s ease forwards; }
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }
@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

.reveal-fade { opacity: 0; transform: translateY(40px); transition: 0.8s cubic-bezier(0.5, 0, 0, 1); }
.reveal-fade.active { opacity: 1; transform: translateY(0); }

/* --- RESPONSIVE FIXES --- */
@media (max-width: 991px) {
    .hero-glass-card { padding: 2rem !important; }
    h1.display-3 { font-size: 2.5rem; }
    .connection-line { display: none !important; }
    .navbar-collapse { background: rgba(255,255,255,0.98); padding: 1.5rem; border-radius: 1rem; box-shadow: var(--shadow-lg); margin-top: 1rem; border: 1px solid var(--color-zinc); }
}

@media (max-width: 768px) {
    /* Modify mobile gradient to make the background pop more */
    .hero-premium { background: linear-gradient(to bottom, rgba(9,9,11,0.85) 0%, rgba(9,9,11,0.4) 100%), var(--bg-url) center center / cover no-repeat !important; }
}

@media (max-width: 576px) {
    /* Scale down logo slightly on mobile */
    .brand-logo { height: 35px; }
    .floating-dock { bottom: 20px; padding: 0 15px; }
    .dock-btn { width: 55px; height: 55px; font-size: 1.5rem; }
    .scroll-top-btn { bottom: 90px; right: 15px; width: 40px; height: 40px; font-size: 1rem; }
    .py-6 { padding-top: 4rem; padding-bottom: 4rem; }
}