/* =====================================================
   ROOT VARIABLES
===================================================== */
:root {
    --primary: #fb0205;
    --dark: #0f172a;
    --light: #ffffff;
    --soft-bg: #f8fafc;
    --text-main: #334155;
    --muted: #64748b;
    --transition: all 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-main);
    background: var(--light);
    line-height: 1.7;
    overflow-x: hidden;
}

section { scroll-margin-top: 90px; }

h1, h2, h3, h4, h5, .navbar-brand {
    color: var(--dark);
    font-weight: 700;
}

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

/* =====================================================
   BUTTON SYSTEM (SINGLE SOURCE OF TRUTH)
===================================================== */
.btn,
.custom-buttons,
.btn-primary-custom,
.btn-outline-custom {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.btn-danger,
.btn-primary-custom,
.custom-buttons.active {
    background: var(--primary);
    color: #fff;
    border: 1px solid var(--primary);
}

.btn-danger:hover,
.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(251,2,5,0.25);
}

.btn-outline-custom,
.btn-outline-secondary,
.custom-buttons {
    background: transparent;
    color: var(--dark);
    border: 2px solid var(--dark);
}

.btn-outline-custom:hover,
.btn-outline-secondary:hover,
.custom-buttons:hover {
    background: var(--dark);
    color: #fff;
}

/* =====================================================
   NAVBAR
===================================================== */
.navbar {
    padding: 20px 0;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 12px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.nav-link {
    color: var(--dark) !important;
    font-weight: 600;
    margin: 0 12px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary) !important;
}

/* =====================================================
   HERO (HOME)
===================================================== */
.hero-section,
.hero {
    padding: 120px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.hero-label,
.hero-badge {
    display: inline-block;
    background: rgba(251,2,5,0.1);
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 999px;
    letter-spacing: 0.5px;
}

.hero-title,
.hero h1 {
    font-size: clamp(34px, 4vw, 50px);
    line-height: 1.15;
}

.hero-subtitle,
.hero p.lead {
    font-size: 18px;
    color: var(--text-main);
    max-width: 520px;
}

.hero-supporting {
    font-size: 15px;
    color: var(--muted);
    max-width: 520px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-img-box,
.hero-visual {
    background: #ffffff;
    border-radius: 28px;
    padding: 28px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.08);
}

/* =====================================================
   AUTHORITY STRIP
===================================================== */
.authority-strip {
    background: var(--light);
    border-top: 1px solid #eef0f2;
    border-bottom: 1px solid #eef0f2;
    padding: 28px 0;
}

.authority-item,
.auth-item {
    display: flex;
    align-items: center;
    gap: 16px;
    font-weight: 500;
}

.authority-icon,
.auth-item i {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: rgba(251,2,5,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 20px;
}

/* =====================================================
   GENERIC CARD SYSTEM
===================================================== */
.system-card,
.work-card,
.process-card,
.why-card,
.serve-card,
.failure-card,
.home-service-card .card-inner,
.about-card,
.pricing-card,
.testimonial-card {
    background: #ffffff;
    border: 1px solid #eef0f2;
    border-radius: 18px;
    padding: 30px;
    transition: var(--transition);
}

.system-card:hover,
.work-card:hover,
.process-card:hover,
.why-card:hover,
.serve-card:hover,
.failure-card:hover,
.home-service-card:hover .card-inner {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(0,0,0,0.08);
    border-color: var(--primary);
}

/* ===========================
   HOME SERVICES – FIX
=========================== */

.home-service-card {
    text-decoration: none;
    color: inherit;
    display: block;
}

.home-service-box {
    background: #ffffff;
    padding: 32px;
    border-radius: 18px;
    border: 1px solid #eef0f2;
    height: 100%;
    transition: all 0.35s ease;
}

.home-service-box i {
    font-size: 28px;
    color: var(--primary);
    display: block;
    margin-bottom: 16px;
}

.home-service-box h5 {
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark);
}

.home-service-box p {
    font-size: 15px;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 20px;
}

.home-service-card:hover .home-service-box {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(0,0,0,0.08);
    border-color: var(--primary);
}

.learn-more {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}


/* =====================================================
   PROCESS / STEPS
===================================================== */
.process-step {
    color: var(--primary);
    font-size: 30px;
    font-weight: 700;
}
.step-card {
    position: relative;
    padding: 30px;
}

.step-number {
    font-size: 4.5rem;
    font-weight: 900;
    color: rgba(15,23,42,0.05);
    position: absolute;
    top: -10px;
    left: 0;
}

/* =====================================================
   ABOUT / FOUNDER
===================================================== */
.pages-hero {
    padding: 150px 0 60px 0 !important;
}

.about-badge {
    background: rgba(251,2,5,0.1);
    color: var(--primary);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}

.about-subtitle {
    max-width: 720px;
    font-size: 17px;
    color: #475569;
}

.founder-image,
.image-section img {
    width: 100%;
    max-height: 550px;
    object-fit: cover;
    border-radius: 20px;
}

/* =====================================================
   FORMS
===================================================== */
.contact-form-container {
    background: #ffffff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.form-control {
    padding: 14px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

/* =====================================================
   TESTIMONIALS
===================================================== */
.testimonial-img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-text {
    font-size: 15px;
    color: #495057;
    line-height: 1.7;
}

.rating i {
    color: #facc15;
    margin: 0 2px;
}

/* =====================================================
   FINAL CTA
===================================================== */
.final-cta {
    background: linear-gradient(135deg, #0f172a, #020617);
    color: #ffffff;
}

.cta-box {
    background: linear-gradient(
        135deg,
        rgba(251,2,5,0.15),
        rgba(15,23,42,0.9)
    );
    padding: 64px 40px;
    border-radius: 28px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.4);
}

.cta-badge {
    background: rgba(251,2,5,0.15);
    color: #f87171;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}

/* =====================================================
   FLOATING BUTTONS
===================================================== */
.whatsapp-float {
    position: fixed;
    width: 52px;
    height: 52px;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    z-index: 1000;
}


/* =====================================================
   ANIMATIONS
===================================================== */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition);
}
.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================
   WHY CHOOSE DRISHITECH – ICON FIX
=========================== */

.why-icon, .failure-icon{
    font-size: 36px;          /* main fix */
    color: var(--primary);
    display: inline-block;
    margin-bottom: 14px;
}


/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 768px) {
    .hero,
    .hero-section {
        text-align: center;
        padding: 100px 20px;
    }
    .hero-img-box {
        margin-top: 40px;
    }
    .btn,
    .custom-buttons {
        width: 100%;
    }
}

@media (max-width: 576px) {
    body { font-size: 15px; }
    .navbar { padding: 12px 0; }
    .auth-item { justify-content: center; }
    .back-to-top {
        right: 20px;
        bottom: 90px;
    }
}
