/* Custom CSS for KeshavSoft Website */

:root {
    --bs-warning: #FFC107;
    --bs-dark: #0D0D0D;
    --bs-dark-rgb: 13, 13, 13;
    --bs-body-bg: #121212;
    --bs-body-color: #FFFFFF;
    --bs-border-color: #2A2A2A;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #121212;
    color: #FFFFFF;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    overflow-x: hidden;
}

/* Navigation */
.navbar {
    backdrop-filter: blur(10px);
    background-color: rgba(13, 13, 13, 0.95) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.brand-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #FFC107 0%, #FF9800 100%);
    color: #0D0D0D;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.5rem;
    margin-right: 10px;
}

.brand-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FFC107;
}

.nav-link {
    color: #FFFFFF !important;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem !important;
}

.nav-link:hover,
.nav-link.active {
    color: #FFC107 !important;
}

.btn-warning {
    background-color: #FFC107;
    border-color: #FFC107;
    color: #0D0D0D;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-warning:hover {
    background-color: #FFD54F;
    border-color: #FFD54F;
    color: #0D0D0D;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.3);
}

.btn-outline-warning {
    border-color: #FFC107;
    color: #FFC107;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-warning:hover {
    background-color: #FFC107;
    border-color: #FFC107;
    color: #0D0D0D;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.3);
}

/* Hero Section */
.hero-section {
    background: #000000;
}

/* Remove custom positioning - now using Bootstrap classes */

/* Golden Flowing Lines - Custom Animation Only */
.hero-lines {
    pointer-events: none;
}

.line {
    position: absolute;
    right: -100px;
    width: 3px;
    height: 200%;
    background: linear-gradient(180deg, 
        transparent 0%, 
        rgba(255, 193, 7, 0.05) 5%,
        rgba(255, 193, 7, 0.3) 20%,
        rgba(255, 193, 7, 0.8) 40%,
        rgba(255, 193, 7, 1) 50%,
        rgba(255, 193, 7, 0.8) 60%,
        rgba(255, 193, 7, 0.3) 80%,
        rgba(255, 193, 7, 0.05) 95%,
        transparent 100%
    );
    box-shadow: 0 0 30px rgba(255, 193, 7, 0.8),
                0 0 60px rgba(255, 193, 7, 0.5),
                0 0 90px rgba(255, 193, 7, 0.3),
                0 0 120px rgba(255, 193, 7, 0.2);
    transform-origin: top center;
    animation: flowDown 10s linear infinite;
    filter: blur(0.5px);
}

.line::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: inherit;
    filter: blur(2px);
}

.line-1 {
    right: 10%;
    animation-delay: 0s;
    animation-duration: 8s;
    transform: rotate(-30deg) translateY(-50%);
}

.line-2 {
    right: 20%;
    animation-delay: 1.5s;
    animation-duration: 9s;
    transform: rotate(-28deg) translateY(-50%);
    opacity: 0.9;
    width: 2.5px;
}

.line-3 {
    right: 30%;
    animation-delay: 3s;
    animation-duration: 10s;
    transform: rotate(-25deg) translateY(-50%);
    opacity: 0.7;
    width: 2px;
}

.line-4 {
    right: 40%;
    animation-delay: 4.5s;
    animation-duration: 9.5s;
    transform: rotate(-23deg) translateY(-50%);
    opacity: 0.5;
    width: 2px;
}

.line-5 {
    right: 50%;
    animation-delay: 6s;
    animation-duration: 8.5s;
    transform: rotate(-20deg) translateY(-50%);
    opacity: 0.4;
    width: 1.5px;
}

@keyframes flowDown {
    0% {
        transform: rotate(-30deg) translateY(-100%);
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    95% {
        opacity: 1;
    }
    100% {
        transform: rotate(-30deg) translateY(50%);
        opacity: 0;
    }
}

/* Particle Effects - Custom Animation Only */
.particles {
    pointer-events: none;
}

.particle {
    position: absolute;
    background: rgba(255, 193, 7, 0.9);
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.9),
                0 0 30px rgba(255, 193, 7, 0.7),
                0 0 45px rgba(255, 193, 7, 0.5);
    animation: particleFloat linear infinite;
}

.particle:nth-child(1) { width: 3px; height: 3px; top: 10%; right: 12%; animation-duration: 12s; animation-delay: 0s; }
.particle:nth-child(2) { width: 2px; height: 2px; top: 15%; right: 15%; animation-duration: 14s; animation-delay: 1s; }
.particle:nth-child(3) { width: 4px; height: 4px; top: 20%; right: 18%; animation-duration: 13s; animation-delay: 2s; }
.particle:nth-child(4) { width: 2px; height: 2px; top: 25%; right: 22%; animation-duration: 15s; animation-delay: 0.5s; }
.particle:nth-child(5) { width: 3px; height: 3px; top: 30%; right: 25%; animation-duration: 12.5s; animation-delay: 1.5s; }
.particle:nth-child(6) { width: 2px; height: 2px; top: 35%; right: 28%; animation-duration: 14.5s; animation-delay: 2.5s; }
.particle:nth-child(7) { width: 3px; height: 3px; top: 40%; right: 32%; animation-duration: 13.5s; animation-delay: 0.8s; }
.particle:nth-child(8) { width: 2px; height: 2px; top: 45%; right: 35%; animation-duration: 15.5s; animation-delay: 1.8s; }
.particle:nth-child(9) { width: 4px; height: 4px; top: 50%; right: 38%; animation-duration: 12.8s; animation-delay: 2.8s; }
.particle:nth-child(10) { width: 2px; height: 2px; top: 55%; right: 42%; animation-duration: 14.8s; animation-delay: 0.3s; }
.particle:nth-child(11) { width: 3px; height: 3px; top: 60%; right: 45%; animation-duration: 13.8s; animation-delay: 1.3s; }
.particle:nth-child(12) { width: 2px; height: 2px; top: 65%; right: 48%; animation-duration: 15.8s; animation-delay: 2.3s; }
.particle:nth-child(13) { width: 3px; height: 3px; top: 8%; right: 25%; animation-duration: 13.2s; animation-delay: 3s; }
.particle:nth-child(14) { width: 4px; height: 4px; top: 18%; right: 35%; animation-duration: 11.5s; animation-delay: 1.7s; }
.particle:nth-child(15) { width: 2px; height: 2px; top: 28%; right: 45%; animation-duration: 16s; animation-delay: 2.2s; }

/* Additional dust particles */
.particle:nth-child(n+16):nth-child(-n+30) {
    width: 1px;
    height: 1px;
    opacity: 0.6;
}

.particle:nth-child(16) { top: 12%; right: 11%; animation-duration: 14s; animation-delay: 0.5s; }
.particle:nth-child(17) { top: 22%; right: 17%; animation-duration: 15s; animation-delay: 1.5s; }
.particle:nth-child(18) { top: 32%; right: 24%; animation-duration: 13s; animation-delay: 2.5s; }
.particle:nth-child(19) { top: 42%; right: 31%; animation-duration: 16s; animation-delay: 0.7s; }
.particle:nth-child(20) { top: 52%; right: 37%; animation-duration: 12s; animation-delay: 1.7s; }

@keyframes particleFloat {
    0% {
        transform: translate(0, 0) scale(0);
        opacity: 0;
    }
    5% {
        transform: translate(-10px, 5px) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(-100px, 50vh) scale(0.8);
        opacity: 0.8;
    }
    95% {
        opacity: 0.3;
    }
    100% {
        transform: translate(-150px, 100vh) scale(0);
        opacity: 0;
    }
}

/* Hero Content Styling */
.hero-badge {
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.875rem;
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.8s ease-out;
}

.hero-title {
    animation: fadeInUp 0.8s ease-out 0.2s both;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    animation: fadeInUp 0.8s ease-out 0.4s both;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #FFFFFF !important;
}

.hero-btn-primary,
.hero-btn-secondary {
    animation: fadeInUp 0.8s ease-out 0.6s both;
    border-radius: 10px;
    padding: 0.75rem 2rem;
    font-size: 1rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-illustration {
    position: relative;
}

.floating-card {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Service Cards */
/* Using Bootstrap classes: card, h-100, border-secondary, shadow-sm, bg-dark, text-white */
/* Only custom hover effect needed */
.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(255, 193, 7, 0.2) !important;
    border-color: #FFC107 !important;
}

/* Remove old service-card classes - now using Bootstrap */

.service-icon-lg {
    width: 80px;
    height: 80px;
    background: rgba(255, 193, 7, 0.1);
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #FFC107;
    flex-shrink: 0;
}

/* Value Icons */
.value-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 193, 7, 0.1);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #FFC107;
    margin: 0 auto;
}

/* Team Section */
.team-avatar {
    width: 120px;
    height: 120px;
    background: rgba(255, 193, 7, 0.1);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: #FFC107;
    margin: 0 auto;
}

/* Contact Icons */
.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 193, 7, 0.1);
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #FFC107;
    flex-shrink: 0;
}

/* Forms */
.form-control:focus,
.form-select:focus {
    border-color: #FFC107;
    box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.25);
}

.form-control::placeholder {
    color: #999;
}

/* Accordion */
.accordion-button:not(.collapsed) {
    background-color: rgba(255, 193, 7, 0.1);
    color: #FFC107;
}

.accordion-button:focus {
    border-color: #FFC107;
    box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.25);
}

/* Cards - Using Bootstrap rounded-4 instead */
/* Removed custom border-radius */

.bg-dark-subtle {
    background-color: #1A1A1A !important;
}

/* CTA Section - Using Bootstrap gradient utilities */
/* Removed custom gradient - use Bootstrap bg-dark instead */

/* Footer - Using Bootstrap classes */
/* Only custom border needed */
.footer {
    border-top: 1px solid #2A2A2A;
}

/* Social Links - Using Bootstrap utilities */
/* Only hover effect needed */

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 193, 7, 0.1);
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #FFC107;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background-color: #FFC107;
    color: #0D0D0D;
    transform: translateY(-3px);
}

.social-link-lg {
    width: 50px;
    height: 50px;
    background: rgba(255, 193, 7, 0.1);
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #FFC107;
    font-size: 1.25rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link-lg:hover {
    background-color: #FFC107;
    color: #0D0D0D;
    transform: translateY(-3px);
}

/* Page Header - Using Bootstrap bg-dark and border classes */
/* Removed custom styling */

/* Utilities */
.text-warning {
    color: #FFC107 !important;
}

.text-muted {
    color: #FFFFFF !important;
    opacity: 0.9;
}

.bg-warning {
    background-color: #FFC107 !important;
    color: #0D0D0D !important;
}

.border-warning {
    border-color: #FFC107 !important;
}

.border-secondary {
    border-color: #2A2A2A !important;
}

/* Badge - Using Bootstrap badge classes */
/* Removed custom styling - use Bootstrap utilities */

/* Progress Bar */
.progress-bar {
    transition: width 1s ease-in-out;
}

/* Modal - Using Bootstrap modal classes */
/* Only custom shadow needed */
.modal-content {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* Using Bootstrap modal-xl class */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    background-color: rgba(255, 193, 7, 0.3);
    border-radius: 50%;
    padding: 0.5rem;
}

.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover {
    background-color: rgba(255, 193, 7, 0.5);
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #FFC107;
    opacity: 0.5;
}

.carousel-indicators .active {
    opacity: 1;
}

/* Testimonial Avatar */
.testimonial-avatar {
    width: 60px;
    height: 60px;
    background: rgba(255, 193, 7, 0.1);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #FFC107;
}

/* Enhanced Modal */
.modal-content {
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.modal-xl {
    max-width: 1140px;
}

/* Carousel Card Enhancements */
.carousel .card {
    transition: all 0.3s ease;
}

.carousel .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 193, 7, 0.2);
    border-color: #FFC107 !important;
}

/* Global Text Color Overrides */
p, span, h1, h2, h3, h4, h5, h6, li, .lead {
    color: inherit;
}

.card p, .card h3, .card h4, .card h5, .card h6 {
    color: #FFFFFF !important;
}

.text-light {
    color: #FFFFFF !important;
}

small {
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 991.98px) {
    .hero-section {
        min-height: auto !important;
        padding: 3rem 0;
    }
    
    .display-3 {
        font-size: 2.5rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
}

@media (max-width: 767.98px) {
    .brand-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    
    .brand-text {
        font-size: 1.25rem;
    }
    
    .display-3 {
        font-size: 2rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection */
::selection {
    background-color: #FFC107;
    color: #0D0D0D;
}

/* Link Hover Effects */
a {
    transition: all 0.3s ease;
}

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

::-webkit-scrollbar-track {
    background: #1A1A1A;
}

::-webkit-scrollbar-thumb {
    background: #FFC107;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #FFD54F;
}
