/* ============================================
   PCGURU Dominica Ltd. - Professional Styles
   ============================================ */

/* Color Variables */
:root {
    --primary-color: #1e3a5f;
    --primary-dark: #152a45;
    --primary-light: #2d5a87;
    --secondary-color: #00b4d8;
    --secondary-dark: #0096c7;
    --accent-color: #ff6b35;
    --accent-dark: #e55a2b;
    --success-color: #2ecc71;
    --dark-text: #2d3436;
    --light-text: #636e72;
    --light-bg: #f8f9fa;
    --footer-bg: #1a1a2e;
    --footer-text: #a0a0a0;
}

/* Base Styles */
html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
    scroll-behavior: smooth;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark-text);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    line-height: 1.6;
}

main {
    flex: 1;
}

/* ============================================
   Header & Navigation Styles
   ============================================ */

.bg-primary-custom {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
}

.navbar {
    padding: 0.75rem 0;
}

.navbar-brand {
    font-size: 1.35rem;
    letter-spacing: 0.5px;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    padding: 0.6rem 1rem;
    transition: all 0.3s ease;
    border-radius: 6px;
    margin: 0 2px;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

.navbar-dark .navbar-nav .nav-link.active {
    color: #fff;
    background-color: var(--secondary-color);
}

/* ============================================
   Button Styles
   ============================================ */

.btn {
    font-weight: 500;
    border-radius: 8px;
    padding: 0.5rem 1.25rem;
    transition: all 0.3s ease;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-secondary-custom {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #fff;
}

.btn-secondary-custom:hover,
.btn-secondary-custom:focus {
    background-color: var(--secondary-dark);
    border-color: var(--secondary-dark);
    color: #fff;
    transform: translateY(-1px);
}

.btn-accent {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
}

.btn-accent:hover,
.btn-accent:focus {
    background-color: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #fff;
    transform: translateY(-1px);
}

.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);
    color: #fff;
}

.btn-outline-light:hover {
    color: var(--primary-color);
}

/* ============================================
   Footer Styles
   ============================================ */

.footer-custom {
    background-color: var(--footer-bg);
    color: var(--footer-text);
}

.footer-heading {
    color: #fff;
    font-weight: 600;
    font-size: 1.15rem;
    position: relative;
    padding-bottom: 12px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.footer-text {
    line-height: 1.8;
    font-size: 0.95rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--footer-text);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.footer-contact i {
    color: var(--secondary-color);
    margin-top: 4px;
    min-width: 20px;
}

.social-links .social-link {
    color: var(--footer-text);
    font-size: 1.4rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.social-links .social-link:hover {
    color: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.25);
    font-size: 0.9rem;
}

.footer-link-bottom {
    color: var(--footer-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link-bottom:hover {
    color: var(--secondary-color);
}

/* ============================================
   Card Styles for Apps
   ============================================ */

.app-card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    background: #fff;
}

.app-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.app-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.app-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    object-fit: cover;
}

.app-icon-lg {
    width: 100px;
    height: 100px;
    border-radius: 22px;
}

/* ============================================
   Rating Stars
   ============================================ */

.star-rating {
    color: #ffc107;
}

.star-rating .bi-star-fill,
.star-rating .bi-star {
    margin-right: 2px;
}

/* ============================================
   Hero Section
   ============================================ */

.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 50%, var(--secondary-color) 100%);
    color: #fff;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.7;
}

@media (max-width: 991.98px) {
    .hero-section {
        padding: 70px 0;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }
}

/* ============================================
   Section Styles
   ============================================ */

.section-title {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 2rem;
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -12px;
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.section-title.text-start::after {
    left: 0;
    transform: none;
}

/* ============================================
   Form Styles
   ============================================ */

.form-control,
.form-select {
    border-radius: 8px;
    padding: 0.65rem 1rem;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 180, 216, 0.2);
}

.form-label {
    font-weight: 500;
    color: var(--dark-text);
    margin-bottom: 0.4rem;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* ============================================
   Alert Customization
   ============================================ */

.alert {
    border-radius: 10px;
    border: none;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

/* ============================================
   Card Enhancements
   ============================================ */

.card {
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.card-header {
    border-radius: 12px 12px 0 0 !important;
}

.shadow-lg {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1) !important;
}

/* ============================================
   Utility Classes
   ============================================ */

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

.text-secondary-custom {
    color: var(--secondary-color) !important;
}

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

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

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

/* ============================================
   Page-specific Styles
   ============================================ */

/* About page value cards */
.value-card {
    transition: all 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
}

/* Contact page */
.contact-info-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
}

/* Empty state */
.empty-state {
    padding: 60px 20px;
}

.empty-state i {
    opacity: 0.3;
}

/* Badge styles */
.badge {
    font-weight: 500;
    padding: 0.4em 0.8em;
    border-radius: 6px;
}

/* ============================================
   Responsive Adjustments
   ============================================ */

@media (max-width: 767.98px) {
    .footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-custom .col-md-6.text-md-start,
    .footer-custom .col-md-6.text-md-end {
        text-align: center !important;
    }

    .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .hero-section {
        text-align: center;
    }

    .hero-section .d-flex {
        justify-content: center;
    }
}

/* ============================================
   Animation Classes
   ============================================ */

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

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

/* ============================================
   Scrollbar Styling
   ============================================ */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* ============================================
   App Description (WYSIWYG Content)
   ============================================ */

.app-description {
    color: var(--light-text);
    line-height: 1.8;
}

.app-description h1,
.app-description h2,
.app-description h3,
.app-description h4,
.app-description h5,
.app-description h6 {
    color: var(--dark-text);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.app-description h1:first-child,
.app-description h2:first-child,
.app-description h3:first-child {
    margin-top: 0;
}

.app-description p {
    margin-bottom: 1rem;
}

.app-description ul,
.app-description ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.app-description li {
    margin-bottom: 0.5rem;
}

.app-description a {
    color: var(--secondary-color);
    text-decoration: none;
}

.app-description a:hover {
    color: var(--secondary-dark);
    text-decoration: underline;
}

.app-description blockquote {
    border-left: 4px solid var(--secondary-color);
    padding-left: 1rem;
    margin: 1rem 0;
    font-style: italic;
    color: var(--light-text);
}

.app-description table {
    width: 100%;
    margin-bottom: 1rem;
    border-collapse: collapse;
}

.app-description table th,
.app-description table td {
    padding: 0.75rem;
    border: 1px solid #dee2e6;
}

.app-description table th {
    background-color: var(--light-bg);
    font-weight: 600;
}

.app-description img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}
