﻿/* ==========================================================================
   Tech Central - Main Stylesheet
   Description: Common and reusable styles for Tech Central website
   Version: 1.0
   ========================================================================== */

/* CSS Variables
   ========================================================================== */
:root {
    --primary-color: #1a73e8;
    --primary-dark: #1557b0;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --white-color: #ffffff;
    --shadow-sm: 0 .125rem .25rem rgba(0,0,0,.075);
    --shadow-md: 0 .5rem 1rem rgba(0,0,0,.15);
    --shadow-lg: 0 1rem 3rem rgba(0,0,0,.175);
    --border-radius: 0.375rem;
    --transition-base: all 0.3s ease;
}

/* Base Styles
   ========================================================================== */
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    padding-top: 0;
    overflow-x: hidden;
}

a {
    color: var(--primary-color);
    transition: var(--transition-base);
}

    a:hover {
        color: var(--primary-dark);
        text-decoration: none;
    }

/* Typography
   ========================================================================== */
.brand-text {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #00A4EF !important;
}

.text-primary {
    /*color: var(--primary-color) !important;*/
    color: #7FBA00 !important;
}

/* Navigation
   ========================================================================== */
.navbar {
    padding: 0.75rem 0;
    transition: var(--transition-base);
}

    .navbar.scrolled {
        box-shadow: var(--shadow-md);
    }

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: var(--transition-base);
}

    .nav-link:hover {
        color: var(--primary-color) !important;
    }

/* Top Bar
   ========================================================================== */
.top-bar small {
    font-size: 0.875rem;
}

/* Hero Section
   ========================================================================== */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white-color);
    padding: 5rem 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.min-vh-75 {
    min-height: 75vh;
}

/* Cards
   ========================================================================== */
.product-card,
.service-card,
.category-card {
    transition: var(--transition-base);
    border: none;
    border-radius: var(--border-radius);
    overflow: hidden;
}

    .product-card:hover,
    .service-card:hover,
    .category-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-lg);
    }

    .product-card .card-img-top {
        height: 200px;
        object-fit: cover;
    }

.product-image {
    position: relative;
    overflow: hidden;
}

    .product-image img {
        transition: transform 0.5s ease;
    }

.product-card:hover .product-image img {
    transform: scale(1.05);
}

/* Service Cards
   ========================================================================== */
.service-card {
    border: 2px solid transparent;
    background: var(--white-color);
}

    .service-card:hover {
        border-color: var(--primary-color);
    }

.service-icon i {
    transition: var(--transition-base);
}

.service-card:hover .service-icon i {
    transform: scale(1.1);
    color: var(--primary-dark) !important;
}

/* Service Detail Cards
   ========================================================================== */
.service-detail-card {
    border: 1px solid rgba(0,0,0,0.1);
    transition: var(--transition-base);
}

    .service-detail-card:hover {
        box-shadow: var(--shadow-lg);
        border-color: var(--primary-color);
    }

.service-icon-large {
    width: 80px;
    height: 80px;
    background: rgba(26, 115, 232, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

    .service-icon-large i {
        font-size: 2rem;
        color: var(--primary-color);
    }

/* Category Cards
   ========================================================================== */
.category-card {
    cursor: pointer;
    min-height: 250px;
    background: linear-gradient(45deg, #1a73e8, #1557b0);
}

    .category-card .card-img {
        height: 250px;
        object-fit: cover;
    }

/* Buttons
   ========================================================================== */
.btn {
    border-radius: var(--border-radius);
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: var(--transition-base);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

    .btn-primary:hover {
        background-color: var(--primary-dark);
        border-color: var(--primary-dark);
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

    .btn-outline-primary:hover {
        background-color: var(--primary-color);
        border-color: var(--primary-color);
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

/* Forms
   ========================================================================== */
.form-control {
    border-radius: var(--border-radius);
    border: 1px solid #dee2e6;
    padding: 0.75rem 1rem;
    transition: var(--transition-base);
}

    .form-control:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 0.2rem rgba(26, 115, 232, 0.25);
    }

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Footer
   ========================================================================== */
.footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

    .footer a {
        text-decoration: none;
        transition: var(--transition-base);
    }

        .footer a:hover {
            color: var(--primary-color) !important;
        }

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: var(--transition-base);
}

    .social-links a:hover {
        background: var(--primary-color);
        transform: translateY(-3px);
    }

/* CTA Section
   ========================================================================== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

/* Breadcrumb
   ========================================================================== */
/* ==========================================================================
   Breadcrumb Styles - Fixed & Enhanced
   ========================================================================== */

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    margin-bottom: 0;
    list-style: none;
    background-color: transparent;
    border-radius: 0;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

    /* The separator - Multiple fallback methods */
    .breadcrumb-item + .breadcrumb-item::before {
        display: inline-block;
        padding: 0 0.5rem;
        color: rgba(255, 255, 255, 0.6);
        content: "›";
        font-size: 1.4rem;
        font-weight: 300;
        line-height: 0.8;
        font-family: Arial, sans-serif;
    }

/* Alternative separator using slash */
.breadcrumb-slash .breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    font-size: 1rem;
}

/* Alternative separator using arrow */
.breadcrumb-arrow .breadcrumb-item + .breadcrumb-item::before {
    content: "→";
    font-size: 1rem;
}

/* Alternative separator using greater than */
.breadcrumb-gt .breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    font-size: 1rem;
}

/* Alternative separator using Bootstrap icon */
.breadcrumb-icon .breadcrumb-item + .breadcrumb-item::before {
    content: "\f285"; /* Bootstrap chevron-right */
    font-family: "bootstrap-icons";
    font-size: 0.8rem;
    vertical-align: middle;
}

/* Breadcrumb link styles */
.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.25rem 0;
    border-bottom: 1px solid transparent;
}

    .breadcrumb-item a:hover {
        color: #ffffff;
        border-bottom-color: rgba(255, 255, 255, 0.5);
    }

/* Active breadcrumb item */
.breadcrumb-item.active {
    color: #ffffff;
    font-weight: 600;
    pointer-events: none;
}

/* Breadcrumb with icons */
.breadcrumb-item .bi {
    font-size: 0.9rem;
    margin-right: 0.25rem;
    vertical-align: -1px;
}

/* On light backgrounds */
.page-header.bg-light .breadcrumb-item + .breadcrumb-item::before {
    color: #adb5bd;
}

.page-header.bg-light .breadcrumb-item a {
    color: #6c757d;
}

    .page-header.bg-light .breadcrumb-item a:hover {
        color: var(--primary-color);
    }

.page-header.bg-light .breadcrumb-item.active {
    color: #212529;
}

/* Breadcrumb in white sections */
.breadcrumb-white .breadcrumb-item + .breadcrumb-item::before {
    color: #ced4da;
}

/* Responsive breadcrumb */
@media (max-width: 767.98px) {
    .breadcrumb {
        margin-top: 0.5rem;
    }

    .breadcrumb-item {
        font-size: 0.85rem;
    }
}

@media (max-width: 575.98px) {
    .breadcrumb.justify-content-lg-end {
        justify-content: flex-start !important;
        margin-top: 0.5rem;
    }

    .breadcrumb-item {
        font-size: 0.8rem;
    }
}

/* Utilities
   ========================================================================== */
.min-vh-75 {
    min-height: 75vh;
}

/* Animations
   ========================================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out;
}

/* Badge
   ========================================================================== */
.badge {
    font-weight: 500;
    padding: 0.5em 0.75em;
    border-radius: var(--border-radius);
}

/* Responsive Styles
   ========================================================================== */
@media (max-width: 991.98px) {
    .hero-section {
        min-height: auto;
        padding: 3rem 0;
        text-align: center;
    }

        .hero-section .d-flex {
            justify-content: center;
        }
}

@media (max-width: 767.98px) {
    .navbar-brand {
        font-size: 1.25rem;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section .lead {
        font-size: 1rem;
    }

    .footer {
        text-align: center;
    }

    .social-links {
        justify-content: center;
        display: flex;
    }
}

@media (max-width: 575.98px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }
}

/* Print Styles
   ========================================================================== */
@media print {
    .navbar,
    .footer,
    .top-bar,
    .btn {
        display: none !important;
    }
}


/* ==========================================================================
   About Page Styles
   ========================================================================== */

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

    .page-header .breadcrumb-item + .breadcrumb-item::before {
        color: rgba(255, 255, 255, 0.5);
    }

/* About Image Wrapper */
.about-image-wrapper {
    position: relative;
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    right: 30px;
    background: var(--primary-color);
    color: white;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    animation: float 3s ease-in-out infinite;
}

    .experience-badge .years {
        display: block;
        font-size: 2.5rem;
        font-weight: 700;
        line-height: 1;
    }

    .experience-badge .text {
        display: block;
        font-size: 0.875rem;
        margin-top: 0.25rem;
    }

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Team Cards */
.team-card {
    transition: var(--transition-base);
    overflow: hidden;
}

    .team-card:hover {
        transform: translateY(-10px);
    }

.team-image-wrapper {
    position: relative;
    overflow: hidden;
}

    .team-image-wrapper img {
        height: 300px;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

.team-card:hover .team-image-wrapper img {
    transform: scale(1.1);
}

.team-social-overlay {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 1rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    transition: bottom 0.3s ease;
}

.team-card:hover .team-social-overlay {
    bottom: 0;
}

.team-social-overlay .social-link {
    width: 35px;
    height: 35px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-base);
}

    .team-social-overlay .social-link:hover {
        background: var(--primary-color);
        color: white;
        transform: translateY(-3px);
    }

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

    .timeline::before {
        content: '';
        position: absolute;
        left: 50%;
        top: 0;
        bottom: 0;
        width: 2px;
        background: var(--primary-color);
        transform: translateX(-50%);
    }

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    width: 50%;
}

    .timeline-item.left {
        left: 0;
        padding-right: 3rem;
    }

    .timeline-item.right {
        left: 50%;
        padding-left: 3rem;
    }

.timeline-content {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: var(--transition-base);
}

    .timeline-content:hover {
        box-shadow: var(--shadow-md);
        transform: translateY(-3px);
    }

    .timeline-content::before {
        content: '';
        position: absolute;
        top: 20px;
        width: 20px;
        height: 20px;
        background: var(--primary-color);
        border-radius: 50%;
    }

.timeline-item.left .timeline-content::before {
    right: -3.5rem;
}

.timeline-item.right .timeline-content::before {
    left: -3.5rem;
}

.timeline-year {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Feature Box */
.feature-box {
    transition: var(--transition-base);
    border-radius: var(--border-radius);
}

    .feature-box:hover {
        background: white;
        box-shadow: var(--shadow-lg);
        transform: translateY(-5px);
    }

/* ==========================================================================
   Contact Page Styles
   ========================================================================== */

/* Contact Info */
.contact-info-wrapper {
    background: var(--light-color);
    padding: 2rem;
    border-radius: var(--border-radius);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(26, 115, 232, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

/* Social Icons */
.social-links {
    display: flex;
    gap: 0.5rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition-base);
    font-size: 1.1rem;
}

    .social-icon:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-md);
        color: white;
    }

    .social-icon.facebook {
        background: #1877f2;
    }

    .social-icon.twitter {
        background: #000000;
    }

    .social-icon.instagram {
        background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    }

    .social-icon.linkedin {
        background: #0a66c2;
    }

    .social-icon.youtube {
        background: #ff0000;
    }

/* Input Groups */
.input-group-text {
    border: 1px solid #dee2e6;
    background-color: #f8f9fa;
}

/* Form Validation Styles */
.was-validated .form-control:valid,
.form-control.is-valid {
    border-color: var(--success-color);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
}

.was-validated .form-control:invalid,
.form-control.is-invalid {
    border-color: var(--danger-color);
}

/* Map Section */
.map-wrapper {
    position: relative;
}

/* FAQ Accordion */
.accordion-button:not(.collapsed) {
    background-color: rgba(26, 115, 232, 0.1);
    color: var(--primary-color);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(26, 115, 232, 0.25);
}

.accordion-button::after {
    background-size: 1rem;
}

/* Responsive Timeline */
@media (max-width: 767.98px) {
    .timeline::before {
        left: 20px;
    }

    .timeline-item,
    .timeline-item.left,
    .timeline-item.right {
        width: 100%;
        left: 0;
        padding-left: 3rem;
        padding-right: 0;
    }

        .timeline-item.left .timeline-content::before,
        .timeline-item.right .timeline-content::before {
            left: -2.5rem;
            right: auto;
        }

    .experience-badge {
        bottom: -20px;
        right: 20px;
        padding: 1rem;
    }

        .experience-badge .years {
            font-size: 2rem;
        }
}

@media (max-width: 575.98px) {
    .contact-info-wrapper {
        padding: 1.5rem;
    }

    .team-image-wrapper img {
        height: 250px;
    }
}

/* ==========================================================================
   Legal Pages Styles (Privacy Policy & Terms of Service)
   ========================================================================== */

/* Policy Content Styles */
.policy-content {
    font-size: 0.95rem;
    line-height: 1.8;
}

    .policy-content p {
        margin-bottom: 1rem;
    }

    .policy-content ul {
        margin-bottom: 1.5rem;
    }

    .policy-content li {
        line-height: 1.6;
    }

/* Policy Navigation */
.policy-sidebar {
    position: sticky;
    top: 20px;
}

.policy-nav .nav-link {
    color: #6c757d;
    font-size: 0.875rem;
    border-left: 2px solid transparent;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

    .policy-nav .nav-link:hover,
    .policy-nav .nav-link.active {
        color: var(--primary-color);
        border-left-color: var(--primary-color);
        background-color: rgba(26, 115, 232, 0.05);
    }

/* Policy Sections */
.policy-section {
    scroll-margin-top: 100px;
}

    .policy-section h2 {
        color: #1a1a1a;
        font-size: 1.75rem;
        padding-bottom: 0.75rem;
        border-bottom: 2px solid #e9ecef;
        margin-bottom: 1.5rem;
    }

    .policy-section h5 {
        color: #333;
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }

/* Tables in Policies */
.policy-content .table {
    font-size: 0.9rem;
}

    .policy-content .table th {
        font-weight: 600;
        white-space: nowrap;
    }

/* Alerts in Policies */
.policy-content .alert {
    border-radius: 0.5rem;
    font-size: 0.9rem;
}

/* Print Styles for Legal Pages */
@media print {
    .navbar,
    .footer,
    .top-bar,
    .page-header,
    .policy-sidebar,
    .btn,
    .alert {
        display: none !important;
    }

    .policy-content {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }

    .policy-section {
        page-break-inside: avoid;
    }
}

/* Mobile Responsive */
@media (max-width: 991.98px) {
    .policy-sidebar {
        position: static !important;
        margin-bottom: 2rem;
    }

    .policy-nav {
        flex-direction: row !important;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

        .policy-nav .nav-link {
            border-left: none !important;
            border-bottom: 2px solid transparent;
            padding: 0.25rem 0.5rem !important;
            font-size: 0.8rem;
        }

            .policy-nav .nav-link.active {
                border-bottom-color: var(--primary-color);
            }

    .policy-section h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .policy-content {
        font-size: 0.9rem;
    }

    .policy-section h2 {
        font-size: 1.25rem;
    }
}

/* ==========================================================================
   Map Section Styles
   ========================================================================== */

.map-section {
    position: relative;
}

.map-container {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
}

    .map-container iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: 0;
    }

/* Map Overlay Card */
.map-overlay-card {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    z-index: 10;
    max-width: 350px;
    animation: slideInLeft 0.6s ease-out;
}

    .map-overlay-card .card {
        backdrop-filter: blur(10px);
        background: rgba(255, 255, 255, 0.95);
    }

    .map-overlay-card address {
        font-style: normal;
        line-height: 1.8;
    }

/* Map Overlay Animation */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

/* Responsive Map */
@media (max-width: 991.98px) {
    .map-overlay-card {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        max-width: 100%;
        margin: 0;
        animation: none;
    }

        .map-overlay-card .card {
            border-radius: 0;
        }

    .map-container {
        height: 300px;
    }

        .map-container iframe {
            height: 300px;
        }
}

@media (max-width: 767.98px) {
    .map-container {
        height: 250px;
    }

        .map-container iframe {
            height: 250px;
        }
}

/* Alternative - Map with gradient fallback */
.map-fallback {
    width: 100%;
    height: 450px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

@media (max-width: 767.98px) {
    .map-fallback {
        height: 300px;
    }
}

/* ==========================================================================
   Developer Credit Styles
   ========================================================================== */

.developer-credit {
    display: inline-block;
    font-size: 0.85rem;
}

.developer-link {
    color: #64b5f6;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(100, 181, 246, 0.1);
    border: 1px solid rgba(100, 181, 246, 0.2);
}

    .developer-link:hover {
        color: #ffffff;
        background: rgba(100, 181, 246, 0.25);
        border-color: rgba(100, 181, 246, 0.4);
        text-decoration: none;
        transform: translateY(-1px);
        box-shadow: 0 2px 8px rgba(100, 181, 246, 0.3);
    }

    .developer-link i {
        font-size: 0.8rem;
        vertical-align: middle;
    }

    .developer-link strong {
        font-weight: 600;
        letter-spacing: 0.3px;
    }

/* Developer Credit Animation */
@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 5px rgba(100, 181, 246, 0.3);
    }

    50% {
        box-shadow: 0 0 15px rgba(100, 181, 246, 0.5);
    }
}

.developer-link:hover {
    animation: glowPulse 2s ease-in-out infinite;
}

/* Responsive Developer Credit */
@media (max-width: 991.98px) {
    .developer-credit {
        display: block;
        margin-top: 10px;
    }
}

@media (max-width: 767.98px) {
    .developer-credit {
        text-align: center !important;
    }
}