/* ========================================
   PRATHIBHA SOLUTIONS - GLOBAL STYLES
   Responsive CSS for all pages
   Brand Colors: Light Green (#00B000), White, Gray
======================================== */

:root {
    --primary-color: #00B000;
    --primary-hover: #008f00;
    --primary-light: rgba(0, 176, 0, 0.1);
    --secondary-color: #ffffff;
    --dark-color: #212529;
    --gray-color: #6c757d;
    --light-gray: #f8f9fa;
    --text-color: #343a40;
    --border-color: #dee2e6;
    --shadow: 0 2px 15px rgba(0, 176, 0, 0.1);
    --shadow-hover: 0 5px 25px rgba(0, 176, 0, 0.15);
    --transition: all 0.3s ease;
}

/* ===== GLOBAL RESET ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--secondary-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 1rem;
    color: var(--text-color);
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-hover);
}

/* ===== NAVIGATION BAR ===== */
.navbar {
    background-color: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    padding: 0.75rem 0;
    border-bottom: 2px solid var(--primary-color);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 1) !important;
    box-shadow: var(--shadow-hover);
}

.navbar-brand {
    display: flex !important;
    align-items: center !important;
    padding-left: 20px !important;
    text-decoration: none !important;
}

.navbar-brand img {
    height: 45px !important;
    width: 45px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    margin-right: 12px !important;
    border: 2px solid var(--primary-color);
    transition: var(--transition);
}

.navbar-brand img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 176, 0, 0.3);
}

.navbar-brand-text {
    font-family: 'Calibri', sans-serif !important;
    color: var(--primary-color) !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1) !important;
    font-size: 1.4rem !important;
    font-weight: 700 !important;
}

.navbar-toggler {
    border: none !important;
    box-shadow: none !important;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 176, 0, 0.25) !important;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--text-color) !important;
    padding: 0.5rem 1rem !important;
    margin: 0 0.25rem;
    border-radius: 25px;
    transition: var(--transition);
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--secondary-color) !important;
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow);
    border-radius: 10px;
    border-top: 3px solid var(--primary-color);
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    transition: var(--transition);
}

.dropdown-item:hover {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

/* ===== OFFCANVAS SIDEBAR ===== */
.offcanvas {
    border-right: 3px solid var(--primary-color);
}

.offcanvas-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white !important;
    border-bottom: none;
}

.offcanvas-title {
    color: white !important;
    font-weight: 600;
}

.btn-close {
    filter: invert(1);
}

.offcanvas-body {
    background-color: var(--light-gray);
}

/* ===== HERO SECTIONS ===== */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    padding: 6rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" preserveAspectRatio="none"><polygon fill="rgba(255,255,255,0.1)" points="1000,100 1000,0 0,100"/></svg>') no-repeat;
    background-size: 100% 100%;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
}

/* ===== BUTTONS ===== */
.btn-custom {
    background: linear-gradient(45deg, var(--primary-color), var(--primary-hover));
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn-custom:hover {
    background: linear-gradient(45deg, var(--primary-hover), var(--primary-color));
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    color: white;
}

.btn-outline-custom {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 28px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-outline-custom:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* ===== SECTIONS ===== */
.section {
    padding: 4rem 0;
    width: 100%;
}

.section .container-fluid {
    width: 100%;
}

.section-title {
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(45deg, var(--primary-color), var(--primary-hover));
    margin: 15px auto 0;
    border-radius: 2px;
}

.bg-light-section {
    background-color: var(--light-gray);
}

.bg-primary-section {
    background: linear-gradient(135deg, var(--primary-light), rgba(0, 176, 0, 0.05));
}

/* ===== CARDS ===== */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
    background: white;
    height: 100%;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.card-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    border: none;
    padding: 1.5rem;
    font-weight: 600;
}

.card-body {
    padding: 2rem;
}

.card-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.service-card {
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: var(--transition);
    height: 100%;
    border-top: 4px solid var(--primary-color);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-top-color: var(--primary-hover);
}

.service-card h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.service-card p {
    color: var(--gray-color);
    line-height: 1.7;
}

.service-card .btn-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    position: relative;
}

.service-card .btn-link:hover {
    color: var(--primary-hover);
}

.service-card .btn-link::after {
    content: '→';
    margin-left: 8px;
    transition: var(--transition);
}

.service-card .btn-link:hover::after {
    transform: translateX(5px);
}

/* ===== FORMS ===== */
.form-control {
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: var(--transition);
    background-color: white;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 176, 0, 0.25);
    background-color: white;
}

.form-label {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.75rem;
}

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(135deg, var(--dark-color), #1a1a1a);
    color: #adb5bd;
    padding: 4rem 0 2rem;
    margin-top: 3rem;
}

.footer h6 {
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    position: relative;
}

.footer h6::after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
    margin: 8px auto 0;
}

.footer a {
    color: #adb5bd;
    text-decoration: none;
    transition: var(--transition);
    display: block;
    margin-bottom: 0.75rem;
    padding: 0.25rem 0;
}

.footer a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer .copyright {
    border-top: 1px solid #343a40;
    padding-top: 2rem;
    margin-top: 3rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--gray-color);
}

/* ===== UTILITIES ===== */
.text-primary-custom {
    color: var(--primary-color) !important;
}

.bg-primary-custom {
    background-color: var(--primary-color) !important;
}

.border-primary-custom {
    border-color: var(--primary-color) !important;
}

.shadow-custom {
    box-shadow: var(--shadow) !important;
}

.rounded-custom {
    border-radius: 15px !important;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Large screens */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* Medium screens */
@media (max-width: 991.98px) {
    .navbar-nav {
        text-align: center;
        padding-top: 1rem;
        background-color: var(--light-gray);
        border-radius: 10px;
        margin-top: 1rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .service-card {
        margin-bottom: 2rem;
    }
}

/* Small screens */
@media (max-width: 767.98px) {
    .navbar-brand {
        padding-left: 10px !important;
    }
    
    .navbar-brand-text {
        font-size: 1.2rem !important;
    }
    
    .hero-section {
        padding: 4rem 0 3rem;
    }
    
    .section {
        padding: 2.5rem 0;
    }
    
    .section-title {
        margin-bottom: 2rem;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
    }
    
    .footer .col-lg-3,
    .footer .col-md-6 {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
}

/* Extra small screens */
@media (max-width: 575.98px) {
    .navbar-brand img {
        height: 35px !important;
        width: 35px !important;
        margin-right: 8px !important;
    }
    
    .navbar-brand-text {
        font-size: 1.1rem !important;
    }
    
    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .service-card {
        padding: 1.5rem 1rem;
    }
    
    .btn-custom {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

/* ===== ACCESSIBILITY ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles for keyboard navigation */
.navbar-nav .nav-link:focus,
.btn-custom:focus,
.btn-outline-custom:focus,
.form-control:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ===== PRINT STYLES ===== */
@media print {
    .navbar,
    .footer,
    .btn {
        display: none !important;
    }
    
    .hero-section {
        background: none !important;
        color: black !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}