/* ============================================
   Precise Tech - Custom CSS
   ============================================ */

:root {
    --primary-color: #0066cc;
    --secondary-color: #003d99;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --muted-color: #6c757d;
    --border-radius: 10px;
    --transition: all 0.3s ease;
}

/* ============================================
   General Styles
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.3);
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* ============================================
   Navigation Bar
   ============================================ */

.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%) !important;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.nav-link {
    position: relative;
    margin-left: 1rem;
    margin-right: 1rem;
    transition: var(--transition);
    font-weight: 500;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* ============================================
   Top Trust Banner
   ============================================ */

.top-banner {
    background: linear-gradient(90deg, #ffb000 0%, #ff7a00 100%);
    color: #fff;
    font-weight: 700;
    padding: 6px 0;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    z-index: 1060; /* above navbar (which is sticky) */
}

.top-banner .banner-stars i {
    color: #fff;
    margin-right: 3px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.top-banner .banner-text {
    font-size: 0.95rem;
}

.top-banner .btn-link {
    color: #fff;
    font-size: 1.25rem;
    line-height: 1;
}

@media (max-width: 576px) {
    .top-banner .banner-text { font-size: 0.85rem; }
    .top-banner .banner-stars { display: none; }
}

/* ============================================
   Hero Section
   ============================================ */

.hero-section {
    min-height: 500px;
    background: linear-gradient(135deg, #0066cc 0%, #003d99 100%);
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    animation: slideInDown 0.8s ease;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.5rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
    animation: slideInUp 0.8s ease;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Form Styles
   ============================================ */

.form-control,
.form-select {
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    padding: 12px 15px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.15);
}

.form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.card {
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

/* ============================================
   Service Cards
   ============================================ */

.service-card {
    background: #fff;
    border-radius: var(--border-radius);
    border: 1px solid #e0e0e0;
    transition: var(--transition);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 102, 204, 0.1);
    border-color: var(--primary-color);
}

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 50%;
    margin: 0 auto;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, #0066cc 0%, #003d99 100%);
    color: white;
    transform: scale(1.1);
}

/* ============================================
   Why Choose Us Cards
   ============================================ */

.why-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.why-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.why-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    transition: var(--transition);
}

.why-card:hover .why-icon {
    background: linear-gradient(135deg, #0066cc 0%, #003d99 100%);
    color: white;
}

/* ============================================
   Testimonial Cards
   ============================================ */

.testimonial-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.stars {
    font-size: 0.8rem;
}

/* ============================================
   Page Header
   ============================================ */

.page-header {
    background: linear-gradient(135deg, #0066cc 0%, #003d99 100%);
    padding: 80px 0;
    text-align: center;
}

.page-header h1 {
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 15px;
}

.page-header .lead {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* ============================================
   About Page
   ============================================ */

.about-image-placeholder {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.value-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 102, 204, 0.1);
    border-color: var(--primary-color);
}

.value-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    transition: var(--transition);
}

.value-card:hover .value-icon {
    background: linear-gradient(135deg, #0066cc 0%, #003d99 100%);
    color: white;
    transform: scale(1.1);
}

.reason-card {
    background: #fff;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.reason-card:hover {
    transform: translateY(-8px);
}

.reason-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-color);
    opacity: 0.3;
    line-height: 1;
}

/* ============================================
   Offerings Page
   ============================================ */

.offering-image-placeholder {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.bundle-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.bundle-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 102, 204, 0.15);
}

.bundle-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

.bundle-badge.bg-primary {
    background: linear-gradient(135deg, #0066cc 0%, #003d99 100%) !important;
}

.bundle-price {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.bundle-price .h3 {
    color: var(--primary-color);
    font-weight: 900;
}

/* ============================================
   Contact Page
   ============================================ */

.contact-info-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    transition: var(--transition);
}

.contact-info-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 50%;
    transition: var(--transition);
}

.contact-info-card:hover .contact-icon {
    background: linear-gradient(135deg, #0066cc 0%, #003d99 100%);
    color: white;
}

.map-container {
    border: 1px solid #e0e0e0;
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: white;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 102, 204, 0.15);
    border-color: var(--primary-color);
}

/* ============================================
   Footer
   ============================================ */

footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-top: 3px solid var(--primary-color);
    margin-top: 80px;
}

footer a {
    transition: var(--transition);
}

footer a:hover {
    color: var(--primary-color) !important;
    transform: translateX(5px);
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    color: white !important;
    transform: translateY(-3px);
}

/* ============================================
   Utility Classes
   ============================================ */

.rounded-lg {
    border-radius: var(--border-radius);
}

.shadow-lg {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-light {
    background-color: var(--light-color) !important;
}

.text-muted {
    color: var(--muted-color) !important;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .about-image-placeholder,
    .offering-image-placeholder {
        min-height: 200px;
    }

    .nav-link {
        margin-left: 0;
        margin-right: 0;
    }

    .reason-number {
        font-size: 2rem;
    }

    .row {
        --bs-gutter-x: 1rem;
    }

    .container,
    .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        min-height: 350px;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .page-header {
        padding: 50px 0;
    }

    .page-header h1 {
        font-size: 1.5rem;
    }

    .display-5 {
        font-size: 2rem;
    }

    .btn-lg {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }

    .bundle-badge {
        top: 10px;
        right: 10px;
    }

    footer {
        margin-top: 40px;
    }

    .row.g-4 {
        --bs-gutter-x: 1rem;
        --bs-gutter-y: 1rem;
    }
}

/* ============================================
   Animation Classes
   ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease;
}

.slide-in {
    animation: slideIn 0.5s ease;
}

/* ============================================
   Accessibility
   ============================================ */

a {
    text-decoration: none;
    transition: var(--transition);
}

a:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ============================================
   Print Styles
   ============================================ */

@media print {
    .navbar,
    footer,
    .btn {
        display: none;
    }

    body {
        color: #000;
        background-color: #fff;
    }

    a {
        color: inherit;
        text-decoration: underline;
    }
}
