/**
 * Bootstrap 5 Theme Customization for Magendoo
 * This file overrides Bootstrap defaults to match the Magendoo brand
 */

/* CSS Variables - Bootstrap Overrides */
:root {
    /* Brand Colors - Matching Magendoo's Blue & Red Theme */
    --bs-primary: #002b5c;      /* Deep Blue - Main brand color */
    --bs-primary-dark: #001a3d; /* Darker Blue */
    --bs-secondary: #c8102e;    /* Red - Accent color */
    --bs-accent: #c8102e;       /* Red - Call to action */
    --bs-accent-dark: #9f0d27;  /* Darker Red */
    --bs-info: #004080;         /* Medium Blue */
    --bs-success: #28a745;
    --bs-warning: #ff9800;
    --bs-danger: #dc3545;
    --bs-light: #f8f9fa;
    --bs-dark: #212529;
    
    /* Extended Palette */
    --bs-golang: #00ADD8;       /* Golang Blue */
    --bs-gray-50: #fafafa;
    --bs-gray-100: #f5f5f5;
    --bs-gray-200: #e0e0e0;
    --bs-gray-300: #d6d6d6;
    --bs-gray-400: #b0b0b0;
    --bs-gray-500: #737373;
    --bs-gray-600: #5e5e5e;
    --bs-gray-700: #424242;
    --bs-gray-800: #303030;
    --bs-gray-900: #1a1a1a;
    
    /* Typography */
    --bs-font-sans-serif: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --bs-body-font-size: 1rem;
    --bs-body-line-height: 1.6;
    
    /* Spacing */
    --bs-gutter-x: 2rem;
    
    /* Border Radius */
    --bs-border-radius: 0.5rem;
    --bs-border-radius-sm: 0.25rem;
    --bs-border-radius-lg: 1rem;
    --bs-border-radius-pill: 50rem;
}

/* Global Styles */
body {
    font-family: var(--bs-font-sans-serif);
    color: var(--bs-gray-900);
    background-color: var(--bs-white);
}

/* Typography */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--bs-gray-900);
}

h1, .h1 { font-size: 2.5rem; }
h2, .h2 { font-size: 2rem; }
h3, .h3 { font-size: 1.75rem; }
h4, .h4 { font-size: 1.5rem; }
h5, .h5 { font-size: 1.25rem; }
h6, .h6 { font-size: 1rem; }

@media (min-width: 768px) {
    h1, .h1 { font-size: 3rem; }
    h2, .h2 { font-size: 2.5rem; }
}

/* Buttons */
.btn {
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: var(--bs-border-radius);
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: normal;
}

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

.btn-primary:hover,
.btn-primary:focus {
    background-color: #a00d24;
    border-color: #a00d24;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(200, 16, 46, 0.3);
}

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

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: #6a3de8;
    border-color: #6a3de8;
}

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

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--bs-primary) 0%, var(--bs-primary-dark) 100%);
    color: white;
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(0, 43, 92, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 500;
    opacity: 0.95;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .hero {
        padding: 8rem 0;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
}

/* Hero Buttons - High Contrast */
.hero .btn-primary {
    background-color: var(--bs-accent);
    border-color: var(--bs-accent);
    color: white;
}

.hero .btn-primary:hover,
.hero .btn-primary:focus {
    background-color: var(--bs-accent-dark);
    border-color: var(--bs-accent-dark);
}

.hero .btn-outline-light {
    border-width: 2px;
}

.hero .btn-outline-light:hover,
.hero .btn-outline-light:focus {
    color: var(--bs-primary);
}

/* Cards */
.card {
    border: 1px solid var(--bs-gray-200);
    border-radius: var(--bs-border-radius-lg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--bs-gray-900);
}

/* Service Cards */
.service-card {
    border-left: 4px solid var(--bs-accent);
    padding: 2rem;
}

.service-card:hover {
    border-left-color: var(--bs-primary);
}

/* Navigation */
.navbar {
    padding-top: 1rem;
    padding-bottom: 1rem;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--bs-primary) !important;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--bs-gray-700);
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: var(--bs-primary);
}

.navbar-nav .nav-link.active {
    color: var(--bs-primary);
    font-weight: 600;
}

/* Forms */
.form-control,
.form-select {
    border: 2px solid var(--bs-gray-300);
    border-radius: var(--bs-border-radius);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--bs-secondary);
    box-shadow: 0 0 0 0.25rem rgba(124, 77, 255, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--bs-gray-700);
    margin-bottom: 0.5rem;
}

/* Tech Badges */
.tech-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--bs-gray-100);
    color: var(--bs-gray-700);
    border-radius: var(--bs-border-radius-pill);
    font-size: 0.875rem;
    font-weight: 500;
    margin: 0.25rem;
}

.tech-badge.primary {
    background-color: rgba(0, 43, 92, 0.1);
    color: var(--bs-primary);
}

.tech-badge.secondary {
    background-color: rgba(200, 16, 46, 0.1);
    color: var(--bs-secondary);
}

/* Profile Image */
.profile-image {
    width: 100%;
    max-width: 250px;
    height: auto;
    border-radius: 50%;
    border: 4px solid var(--bs-accent);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Sections */
.section {
    padding: 4rem 0;
}

@media (min-width: 768px) {
    .section {
        padding: 6rem 0;
    }
}

/* Footer */
.footer {
    background-color: var(--bs-gray-900);
    color: var(--bs-gray-300);
    padding: 3rem 0 2rem;
}

.footer a {
    color: var(--bs-gray-300);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: white;
}

/* Utilities */
.text-accent {
    color: var(--bs-accent) !important;
}

.bg-light-gray {
    background-color: var(--bs-gray-50) !important;
}

/* Responsive Grid Helpers */
@media (min-width: 768px) {
    .row-cols-md-2-1 > * {
        flex: 0 0 auto;
    }
    
    .row-cols-md-2-1 > *:first-child {
        width: 33.333333%;
    }
    
    .row-cols-md-2-1 > *:last-child {
        width: 66.666667%;
    }
}

/* Case Study Cards */
.case-study-card {
    background-color: var(--bs-gray-50);
    border-left: 4px solid var(--bs-accent);
    padding: 2rem;
    border-radius: var(--bs-border-radius);
    margin-bottom: 1.5rem;
}

/* Blog Cards */
.blog-card {
    height: 100%;
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
}

.blog-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.blog-card-title a {
    color: var(--bs-gray-900);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card-title a:hover {
    color: var(--bs-primary);
}

/* Feature Lists */
.feature-list {
    list-style: none;
    padding-left: 0;
}

.feature-list li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--bs-success);
    font-weight: bold;
}

/* Results List */
.results-list {
    list-style: none;
    padding-left: 0;
}

.results-list li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--bs-success);
}

.results-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Alpine.js Components */
[x-cloak] {
    display: none !important;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Focus Visible */
*:focus {
    outline: none;
}

*:focus-visible {
    outline: 2px solid var(--bs-secondary);
    outline-offset: 2px;
}